Wednesday, April 28, 2021

Javascript Practice 02: JS Hero - What is x?


Question: 

Which value does x have after execution of the following code?

let x = 'Geeta';





Answer: 

x will have the value of 'Geeta' (with the quotes) - which is a string. 
x will not have the value of Geeta (without the quotes)

No comments:

Post a Comment