Few important Questions in JavaScript and ES6

1. What is an Iterator?

2. What is an event loop?

3. What is call stack?

  1. Whenever you call a function for its execution, you are pushing it to the stack.
  2. Whenever the execution is completed, the function is popped out of the stack.

4. What is an error object?

4. What are the different error names from error object?

  1. EvalError : An error has occurred in the eval() function
  2. RangeError : An error has occurred with a number “out of range”
  3. ReferenceError : An error due to an illegal reference
  4. SyntaxError : An error due to a syntax error
  5. TypeError : An error due to a type error
  6. URIError : An error due to encodeURI()

5. What are the various statements in error handling.

  1. try: This statement is used to test a block of code for errors
  2. catch: This statement is used to handle the error
  3. throw: This statement is used to create custom errors.
  4. finally: This statement is used to execute code after try and catch regardless of the result.

6. What are primitive data types

  1. String
  2. number
  3. boolean
  4. null
  5. undefined
  6. bigint
  7. symbol

7. What is Hoisting?

8. What are classes in ES6?

9. What are closures?

  1. Own scope where variables defined between its curly brackets
  2. Outer function’s variables
  3. Global variables

10. Arrow functions?

--

--

--

I am Aiman. I am a web developer. I can learn anything at any time. For that, I take the help of Google. My core skill is based on JavaScript .

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Very simple REST API using Express.js

A short GIF showing an example of how an API can be used in a real world project

JavaScript tips you can’t ignore

Javascript array mehod| you must have to know

The Beginner’s First Exposure to React Native & Expo

Fre: 1kb concurrent UI library

Mixing React modules into a legacy application

Google Apps Script for Android Translation

Yes, you are in right place.. We are talking about JavaScript.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ahad Hossain Aiman

Ahad Hossain Aiman

I am Aiman. I am a web developer. I can learn anything at any time. For that, I take the help of Google. My core skill is based on JavaScript .

More from Medium

Currying

The Trials and Tribulations of Asynchronous Code

Behaviour of ‘This’ Keyword in Regular and Arrow Functions in Javascript.

useEffect()