Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

JavaScript Questins and Answers

Rating
-
Sold
-
Pages
2
Grade
A
Uploaded on
18-09-2023
Written in
2023/2024

this is the basic questions of JavaScript

Institution
Course

Content preview

JavaScript -
JavaScript is a high-level programming language used to create interactive web pages and web
applications.
It is a client-side scripting language, meaning that it runs on the user's web browser, rather than on a
web server.

Data types in JavaScript -
JavaScript has seven data types: string, number, boolean, null, undefined, object, and symbol.

Difference between null and undefined -
Null is an intentional absence of any object value, while undefined means that a variable has been
declared but has not yet been assigned a value.

DOM -
The Document Object Model (DOM) is a programming interface for web documents. It represents the
page so that programs can change the document structure, style, and content.

Closure -
A closure is a function that has access to variables in its outer (enclosing) scope, even after the outer
function has returned.

Difference between let and var -
Var is function-scoped, while let is block-scoped. This means that variables declared with var can be
accessed within the entire function, while variables declared with let are only accessible within the block
they are declared in.

Event bubbling in JavaScript -
Event bubbling is a mechanism in which events propagate up the DOM tree from the target element to
its ancestors. This means that if you click on a child element, the click event will be triggered on all of its
ancestors as well.

Callback Function -
A callback function is a function passed as an argument to another function, which is then invoked
inside the outer function to complete some kind of action or process.

Arrow Functions -
Arrow functions are a shorthand syntax for creating anonymous functions in JavaScript. They have a
more concise syntax than traditional function declarations and automatically bind to the surrounding
context, making it easier to write functional code.

AJAX -
AJAX stands for Asynchronous JavaScript and XML. It is a technique used to send and receive data
from a server without reloading the entire page. This allows web pages to be more dynamic and
responsive.

Promises -
Promises are objects that represent the eventual completion or failure of an asynchronous operation
and its resulting value. They allow you to write asynchronous code that looks synchronous, making it
easier to manage complex operations.

Hoisting -
Hoisting is a behavior in JavaScript where variable declarations and function declarations are moved to

Written for

Course

Document information

Uploaded on
September 18, 2023
Number of pages
2
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$11.09
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
satyamsingh4

Get to know the seller

Seller avatar
satyamsingh4 School of research and technology, Bhanpur
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions