kill process running on port mac
sudo lsof -i :3000
kill -9 <PID>
kill process running on port mac
sudo lsof -i :3000
kill -9 <PID>
killing a port mac
sudo lsof -i :3000
javascript capitalize words
//capitalize only the first letter of the string.
function capitalizeFirstLetter(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
//capitalize all words of a string.
function capitalizeWords(string) {
return string.replace(/(?:^|\s)\S/g, function(a) { return a.toUpperCase(); });
};
to capital case javascript
const toCapitalCase = (string) => {
return string.charAt(0).toUpperCase() + string.slice(1);
};
capitalize name function javascript
function capitalizeName(name) {
let nameObject = convertNameToObject(name);
let firstName = nameObject.firstName;
let lastName = nameObject.lastName;
return firstName[0].toUpperCase() + firstName.substring(1, firstName.length).toLowerCase() + " " + lastName[0].toUpperCase() + lastName.substring(1, lastName.length).toLowerCase()
javascript capitalize words
//Updated
//capitalize only the first letter of the string.
function capitalizeFirstLetter(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
//capitalize all words of a string.
function capitalizeWords(string) {
return string.replace(/(?:^|\s)\S/g, function(a) { return a.toUpperCase(); });
};
capitalize a string javascript
const Capitalize = function(string){
return string[0].toUpperCase + string.slice(1).toLowerCase;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us