// Method Chaining = Calling one method after another // in one continuous line of code. let username = window.prompt("Enter your username: "); // ----- NO METHOD CHAINING ----- /* username = username.trim(); let letter = username.charAt(0); letter = letter.toUpperCase(); let extraChars = username.slice(1); extraChars = extraChars.toLowerCase(); username = letter + extraChars; console.log(username); */ // ----- METHOD CHAINING ----- username = username.trim().charAt(0).toUpperCase() + username.trim().slice(1).toLowerCase(); console.log(username);
// Method Chaining = Calling one method after another
// in one continuous line of code.
let username = window.prompt("Enter your username: ");
// ----- NO METHOD CHAINING -----
/*
username = username.trim();
let letter = username.charAt(0);
letter = letter.toUpperCase();
let extraChars = username.slice(1);
extraChars = extraChars.toLowerCase();
username = letter + extraChars;
console.log(username);
*/
// ----- METHOD CHAINING -----
username = username.trim().charAt(0).toUpperCase() + username.trim().slice(1).toLowerCase();
console.log(username);
You have a nice intonation.
You dont sound monotone.
It makes it very pleasant and guideful to watch
you got me intro programming!
Amazing course, absolutely love it! thank you very much for making coding so easy to do and understand!
Syperb explanation. Thank you!
Love ❤ from India
ishowspeed and bro code are only youtuber's whose content is whole other level!
Ishowcode would have been another good channel name
imagine speed rage in his next stream if he finds out🤣.
Thanks Bro code!❤
This is my seal. I have watched the entire video, understood it, and I can explain it in my own words, thus I have gained knowledge. This is my seal.
❤
It a 3 hit combo. Boom Boom Boom.