SlideShare a Scribd company logo
JavaScript Interview questions
and answers
1. What is JavaScript?
JavaScript is a scripting language with the
OOPs( object-oriented language )
capability. It is used to create dynamic
pages but nowadays JavaScript is also
as a server-side scripting language.
2. How to add JavaScript in an
HTML file?
We use a script tag to add a
JavaScript file in an HTML file.
for example:-
<script src=“filename.js”></script>
3. What is the use of the typeof
operator?
To check the type of variable in
JavaScript we use the typeof
operator.
4. Difference between null and
undefined in JavaScript.
Null: The value of the variable is
purposely absent.
undefined: the value of the variable
does not exist in Program.
5. What is the use of isNaN?
isNaN( is Not a Number ) is
used to check whether a
is a number or not. If the
value is a number then it
returns false otherwise it
returns true.
6. Disadvantages of using
JavaScript?
Client-side JavaScript does not
allow us to read or write data in
files. Because of security reasons.
Also, JavaScript doesn't support
multithreading.
7. What is the "this" keyword in
JavaScript?
JavaScript is more famous for the
"this" keyword. "this" keyword
to the object where it was
8. What is the difference between
== and === operator?
== operator compare the value of
two operands but === operator
compares the value as well as the
type of operands.
9. What is BOM?
BOM stands for Browser Object
Model. Using it we can interact
with Browser.
10. What is DOM?
DOM stands for Document
Object Model. Using it we can
manipulate HTML files.
Thank You
For More Information:-
www.feedgocode.com

More Related Content

PPTX
What Is A Technology Stack?
PDF
Designing APIs with OpenAPI Spec
PDF
Asp.Net MVC - Razor Syntax
PPTX
Oracle RAD stack REST, APEX, Database
PPT
Html tag
PDF
APIC/DataPower security
PPTX
PDF
M10: How to implement mq in a containerized architecture ITC 2019
What Is A Technology Stack?
Designing APIs with OpenAPI Spec
Asp.Net MVC - Razor Syntax
Oracle RAD stack REST, APEX, Database
Html tag
APIC/DataPower security
M10: How to implement mq in a containerized architecture ITC 2019

What's hot (20)

PPTX
PPTX
Getting started with ms graph api
PPT
Introduction To Dotnet
ODP
Kong API Gateway
PPTX
Keeping a Secret with HashiCorp Vault
PPTX
Directory Management in Unix
PPTX
An Introduction To REST API
PPTX
Introduction to Aneka, Aneka Model is explained
PDF
Introducing Vault
PDF
AWS ECS vs EKS
PDF
OAuth & OpenID Connect Deep Dive
PDF
The What, Why, and How of DevSecOps
PPTX
Web services SOAP
PPTX
Javascript 101
PPTX
Radius server,PAP and CHAP Protocols
PPT
Introduction to the Web API
PDF
Keycloak Single Sign-On
PPTX
MVC 6 - Tag Helpers and View Components
PPTX
Azure key vault
PPTX
Azure AD B2C Webinar Series: Custom Policies Part 2 Policy Walkthrough
Getting started with ms graph api
Introduction To Dotnet
Kong API Gateway
Keeping a Secret with HashiCorp Vault
Directory Management in Unix
An Introduction To REST API
Introduction to Aneka, Aneka Model is explained
Introducing Vault
AWS ECS vs EKS
OAuth & OpenID Connect Deep Dive
The What, Why, and How of DevSecOps
Web services SOAP
Javascript 101
Radius server,PAP and CHAP Protocols
Introduction to the Web API
Keycloak Single Sign-On
MVC 6 - Tag Helpers and View Components
Azure key vault
Azure AD B2C Webinar Series: Custom Policies Part 2 Policy Walkthrough
Ad

Similar to Javascript interview questions and answers (20)

PDF
656981533-100-JavaScript-Interview-QnA.pdf
DOCX
Javascript viva questions
PDF
javascriptPresentation.pdf
PPTX
Lecture 5 javascript
PPTX
JavaScripts & jQuery
PDF
JavaScript Interview Questions with Answers
PDF
JavaScript(Es5) Interview Questions & Answers
PDF
CS8651- Unit 2 - JS.internet programming paper anna university -2017 regulation
DOC
Active browser web page
PPTX
CSC PPT 12.pptx
PPTX
Final Java-script.pptx
PPTX
Introduction to JAVA SCRIPT USING HTML and CSS
PDF
JavaScript Interview Questions PDF By ScholarHat
PPTX
Java script
PDF
HSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPT
PPTX
Java script.pptx v
PDF
JavaScript Interview Questions Part - 1.pdf
PPTX
Basics of Javascript
PPTX
javascript.pptx
PDF
JavaScript Interview Questions and Answers | Full Stack Web Development Train...
656981533-100-JavaScript-Interview-QnA.pdf
Javascript viva questions
javascriptPresentation.pdf
Lecture 5 javascript
JavaScripts & jQuery
JavaScript Interview Questions with Answers
JavaScript(Es5) Interview Questions & Answers
CS8651- Unit 2 - JS.internet programming paper anna university -2017 regulation
Active browser web page
CSC PPT 12.pptx
Final Java-script.pptx
Introduction to JAVA SCRIPT USING HTML and CSS
JavaScript Interview Questions PDF By ScholarHat
Java script
HSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPT
Java script.pptx v
JavaScript Interview Questions Part - 1.pdf
Basics of Javascript
javascript.pptx
JavaScript Interview Questions and Answers | Full Stack Web Development Train...
Ad

Recently uploaded (20)

PPTX
Lesson notes of climatology university.
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
master seminar digital applications in india
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PPTX
Cell Types and Its function , kingdom of life
PDF
Classroom Observation Tools for Teachers
PDF
RMMM.pdf make it easy to upload and study
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Weekly quiz Compilation Jan -July 25.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Trump Administration's workforce development strategy
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Lesson notes of climatology university.
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Final Presentation General Medicine 03-08-2024.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
master seminar digital applications in india
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Final Presentation General Medicine 03-08-2024.pptx
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Cell Types and Its function , kingdom of life
Classroom Observation Tools for Teachers
RMMM.pdf make it easy to upload and study
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Weekly quiz Compilation Jan -July 25.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Trump Administration's workforce development strategy
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Anesthesia in Laparoscopic Surgery in India
Microbial diseases, their pathogenesis and prophylaxis
ChatGPT for Dummies - Pam Baker Ccesa007.pdf

Javascript interview questions and answers

  • 2. 1. What is JavaScript? JavaScript is a scripting language with the OOPs( object-oriented language ) capability. It is used to create dynamic pages but nowadays JavaScript is also as a server-side scripting language.
  • 3. 2. How to add JavaScript in an HTML file? We use a script tag to add a JavaScript file in an HTML file. for example:- <script src=“filename.js”></script>
  • 4. 3. What is the use of the typeof operator? To check the type of variable in JavaScript we use the typeof operator.
  • 5. 4. Difference between null and undefined in JavaScript. Null: The value of the variable is purposely absent. undefined: the value of the variable does not exist in Program.
  • 6. 5. What is the use of isNaN? isNaN( is Not a Number ) is used to check whether a is a number or not. If the value is a number then it returns false otherwise it returns true.
  • 7. 6. Disadvantages of using JavaScript? Client-side JavaScript does not allow us to read or write data in files. Because of security reasons. Also, JavaScript doesn't support multithreading.
  • 8. 7. What is the "this" keyword in JavaScript? JavaScript is more famous for the "this" keyword. "this" keyword to the object where it was
  • 9. 8. What is the difference between == and === operator? == operator compare the value of two operands but === operator compares the value as well as the type of operands.
  • 10. 9. What is BOM? BOM stands for Browser Object Model. Using it we can interact with Browser.
  • 11. 10. What is DOM? DOM stands for Document Object Model. Using it we can manipulate HTML files.
  • 12. Thank You For More Information:- www.feedgocode.com