Javascript

Javascript Interview Questions

Javascript Interview Questions

1. What’s relationship between JavaScript and ECMAScript?
Ans.
ECMAScript is yet another name for JavaScript (other names include LiveScript). The current JavaScript that you see supported in browsers is ECMAScript revision 3.

2. Which types javascript supports?
Ans. Number, String, Boolean, Function, Object, Null, Undefined.

3. How do you convert numbers between different bases in JavaScript?
Ans. Use the parseInt() function, that takes a string as the first parameter, and the base as …