In JavaScript, you can chain a method to a string literal. Example using .toLowerCase method: const sentence = "A cool sentence".toLowerCase(); console.log(sentence); But this will not work with a number literal, example using .toString: console.lo...

Markdown supported · ⌘↵ to post
Eliaz Bobadilla
Requisalla
I build zoftware
Interesting, didn't know about this one!
console.log(458 .toString());