JavaScript

JavaScript Frequently Asked Questions

Given below are some of the JavaScript Frequently Asked Questions.

  1. What is JavaScript?
  2. What are the features of JavaScript?
  3. How to use Internal and external JavaScript?
  4. Discuss the data types used in JavaScript?
  5. What is meant by event handling? Describe the different type of events that we can handle using JavaScript?
  6. What is a function? How to create a function in JavaScript?
  7. Explain the different types of loops used in JavaScript?
  8. What is the purpose of if statement? Give an example in JavaScript.
  9. Give examples of using different types of operators in JavaScript.
  10. How to create an array in JavaScript? Give an example.
  11. Give examples of array methods in JavaScript.
  12. Explain Date object and its methods.
  13. Explain String object and its methods.
  14. What is Document Object Model?
  15. What is Browser Object Model?
  16. How to perform input validation in JavaScript?
  17. What are different types of objects in JavaScript?
  18. How do you display date in different format?
  19. How do these methods of String object in JavaScript work – indexOf(), lastIndexOf(), substr()
  20. What is the purpose of ID and Class attributes in HTML? How do we use Id and class in JavaScript.
  21. What is the use of getElementById()?
  22. What is the use of getElementsByClassName()?
  23. Discuss the use of getElementsByTagName()?
  24. What is the use of querySelector()?
  25. Explain the use of addEventListener()?
  26. How many objects are there in Browser Object Model and what are these objects?
  27. What is the purpose of window object?
  28. Describe the purpose of screen object?
  29. What is the purpose of location object?
  30. Discuss the purpose of navigator object?
  31. What is the purpose of history object?

Further Reading

Evolution of JavaScript from ES1 to ES2020

Introduction to HTML DOM Methods in JavaScript

JavaScript Practice Exercise

Understanding Document Object Model (DOM) in JavaScript

Understanding HTTP Requests and Responses

What is Asynchronous JavaScript?

JavaScript Code for Event Handling

Callback Functions in JavaScript

Arrow Functions in JavaScript

JavaScript Code Examples

Show or Hide TextBox when Selection Changed in JavaScript

Changing Style of HTML Elements using getElementsByClassName() Method

Creating Classes in JavaScript

Understanding JSON Web Tokens

programmingempire

You may also like...