dsa | sp javascript string | Question 1

Last Updated :
Discuss
Comments

Which of the following is a valid way to declare a string variable in JavaScript?

b. string name = 'John';

a. var name = 'John';

b. const name = 'John';

c. let name = 'John';

d. All of the above

Share your thoughts in the comments