Tell me how Do You Distinguish Between An Undefined And Undeclared Variable?
Submitted by: MuhammadUndefined refers to a variable which has declaration but not initialized yet. However, an undeclared variable is one which has a reference in the code without being declared.
Example.
var iExistButUndefined;
alert(iExistButUndefined); // undefined
alert(iMNotDeclared); // accessing an undeclared variable
Submitted by: Muhammad
Example.
var iExistButUndefined;
alert(iExistButUndefined); // undefined
alert(iMNotDeclared); // accessing an undeclared variable
Submitted by: Muhammad
Read Online Website Developer Job Interview Questions And Answers
Top Website Developer Questions
☺ | Please explain what is CORS? How does it work? |
☺ | Explain me what is the correct way to include JavaScript into your HTML? |
☺ | Tell me the new APIs provided by HTML 5 standard? |
☺ | Do you know what Is SVG And Why Do You Use It? |
☺ | Tell me how Does CSS3 Support The Responsive Web Designing? |
Top Web Developer Categories
☺ | Bootstrap Interview Questions. |
☺ | Front End Web Developer Interview Questions. |
☺ | Typography Interview Questions. |
☺ | Laravel PHP Developer Interview Questions. |
☺ | Junior Developer PHP Interview Questions. |