Home » JS » Top Javascript Interview Questions And Answers Part 1

Top Javascript Interview Questions And Answers Part 1

1. What is JavaScript?

JavaScript is a client-side as well as server side scripting language that can be inserted into HTML pages and is understood by web browsers.

2. What are the data types supported by JavaScript?

The data types supported by JavaScript are:

  • Undefined
  • Null
  • Boolean
  • String
  • Symbol
  • Number
  • Object

3. What are the features of JavaScript?

  • JavaScript is a lightweight, interpreted programming language.
  • JavaScript is designed for creating network-centric applications.
  • JavaScript is complementary to and integrated with Java.
  • JavaScript is an open source cross-platform.
  • JavaScript is an Complementary to HTML.

4. Is JavaScript a case-sensitive language?

Yes

5. How can you create an object in JavaScript?

JavaScript supports Object concept very well. You can create an object using the object literal as follows −

var obj = {
name: "JavaScript",
year: 2019
};

Leave a Reply

Your email address will not be published. Required fields are marked *