Learn JS METHOD CHAINING in 5 minutes! ⛓

preview_player
Показать описание
#javascript #tutorial #course

// Method Chaining = Calling one method after another
// in one continuous line of code.

// ----- NO METHOD CHAINING -----
/*

username = letter + extraChars;

*/

// ----- METHOD CHAINING -----

Рекомендации по теме
Комментарии
Автор

// 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 = +

console.log(username);

BroCodez
Автор

You have a nice intonation.
You dont sound monotone.
It makes it very pleasant and guideful to watch

halcyon__r
Автор

Amazing course, absolutely love it! thank you very much for making coding so easy to do and understand!

LiziBenia
Автор

ishowspeed and bro code are only youtuber's whose content is whole other level!

shivasai
Автор

<*_> 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. <_*>

piotrmazgaj