+ 9
Why it is undefined?
https://code.sololearn.com/W4U0cZ5WUru2/?ref=app let str="text"; str.someth=2; console.log(str.someth);
4 Réponses
+ 7
For that, you need to do this.
https://code.sololearn.com/Wl0Z40TTvXCl/?ref=app
+ 6
If any other confusion please reply me. I am always to help.
+ 5
The use of String.prototype.someth
Does technically add the property to all strings though.