What does undefined value mean in javascript?



What does undefined value mean in javascript?..

Answer / Mayank Gupta

In JavaScript, 'undefined' is a value that a variable or function can take if it has been declared but hasn't been assigned any value yet or if an attempt is made to access the return value of a function that hasn't returned anything explicitly.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

Do I need to install javascript?

1 Answers  


What is difference between callback and promise?

1 Answers  


How do I write script-generated content to another window?

1 Answers  


Write a JavaScript function which can take any number of strings as arguments and outputs them as a single concatenated string.

4 Answers  


What is the difference between ‘function declaration’ and ‘function expression’?

1 Answers  


What is a Promise in JavaScript?

1 Answers  


Which software is used for javascript?

1 Answers  


How can javascript make a web site easier to use? That is, are there certain javascript techniques that make it easier for people to use a web site?

1 Answers  


What is the difference between undefined and not defined in JavaScript?

1 Answers  


How can an HTMLCollection be traversed?

1 Answers  


What is use of object as function?

1 Answers  


How do you access an element in an HTML document with JavaScript?

1 Answers  


Categories