adplus-dvertising
frame-decoration

Question

Non Initialized Variable have value "undefine", What value be printed in following case -
var carname="Volvo";
var carname;

a.

undefined

b.

Error

c.

Volvo

d.

null

Answer: (c).Volvo

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Non Initialized Variable have value "undefine", What value be printed in following case - var carname="Volvo"; var carname;