JavaScript Interview Questions
JavaScript Interview Questions
JavaScript Concepts
For Interviews
Part 5 Final
Kailash G
What do you mean by strict
mode in javascript and
characteristics of javascript
strict-mode?
In ECMAScript 5, a new feature called JavaScript Strict Mode allows
you to write code or a function in a "strict" operational environment.
When it comes to throwing errors, javascript is often 'not extremely
severe'. However, in "Strict mode," all errors, even silent faults, will
result in a throw. Debugging hence becomes more easier. Thus, the
chance of a coder committing a mistake is decreased.
The 'use strict' keyword is used to define strict mode at the start of
the script. Strict mode is supported by all browsers.
1
Kailash G
What are the differences between
cookie, local storage and session
storage?
Can be accessed on
Can be accessed on Can be accessed on
both server- side &
client- side only client- side only
client side
2
Kailash G
Explain prototype chaining
Prototype chaining is used to build new types of objects based on
existing ones. It is similar to inheritance in a class based language. The
prototype on object instance is available through
Object.getPrototypeOf(object) or __proto__ property whereas
prototype on constructors function is available through
Object.prototype
3
Kailash G
Difference between
Debouncing and Throttling.
Debouncing Throttling
Kailash G