dimanche 28 janvier 2018

String Declaration in Javascript

Following are some declaration of String in JAVASCRIPT

var str = "Hello World"
var str1 = new String("Hello World")
str2 = "Hello World"

What is the difference between declarations mentioned above. Memory wise or if any.




Aucun commentaire:

Enregistrer un commentaire