Without Book Interview Questions and Answers | Online Test | Moct Test
Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Institute Training Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

JavaScript Interview Questions and Answers

Ques 11. How do you assign object properties?

Ans. obj["age"] = 17 or obj.age = 17.

Is it helpful? Add Comment View Comments
Ques 12. What's a way to append a value to an array?
Ans. arr[arr.length] = value;
Is it helpful? Add Comment View Comments
Ques 13. What is this keyword?
Ans. It refers to the current object.
Is it helpful? Add Comment View Comments
Ques 14. What is Javascript?
Ans. A scripting language is a simple, interpreted programming language.
Scripts are embedded as plain text, interpreted by application.

Simpler execution model: don\'t need compiler or development environment.
Saves bandwidth: source code is downloaded, not compiled executable.
Platform-independence: code interpreted by any script-enabled browser.

But: slower than compiled code, not as powerful/full-featured.
Is it helpful? Add Comment View Comments
Ques 15. What is identifier in Javascript?
Ans. Identifier– The name of a variable (or function)
Starts with a letter, can contains digits & underscores
Case Sensitive!!
Should be meaningful to someone reading your code
Good: accountBalance, amountDue

Bad: bal, due,

Just plain wrong: 2bOrNotToBe, +var, total-value
Is it helpful? Add Comment View Comments

Most helpful rated by users:

©2016 WithoutBook