• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 1 pages
Exam (elaborations)

Advanced JavaScript with correct answers 100% 2025

Document preview thumbnail
Preview 1 out of 1 pages

Advanced JavaScript with correct answers 100% 2025 does the `ternary operator` looks like in javascript? - an expression ? This happens when its true : This happens when its false How to import a function from another module in JavaScript? - import {functionname} from "./folder/filename" What is a shallow copy on an object? - A copy whose properties share the same references (point to the same underlying values) as those of the source object from which the copy was made. What is a callback function? Tell some examples of its usage. - A callback function is a function that is passed as an argument to another function and is executed after some kind of event. setTimeout and addEventListeners are Callback functions What is object destructuring in javascript? - Object destructuring in JavaScript is a feature that allows you to extract properties from an object and assign them to variables you can directly access them by their variable names rather than having to reference them through the object. What is array destructuring in javascript? - Allows extract elements from an array and assign them to variables. It uses a syntax similar to array literals, but with variable names instead of values. What is the spread operator in `js` ? - It allows an iterable (such as an array or string) to be expanded in places where zero or more elements (for arrays) or characters (for strings) are expected. What are the differences between the `arrow` function and the regular `function`? - You cant call an arrowfunction before the declaration, but with the regular function you can call it before you declare it What is the `import` keyword used for? - To import bindings that are exported by another module, What is the `required` used for? - to include external modules that exist in separate files. What are template literals? - Literals delimited with backtick ( ` ) characters, allowing for multi-line strings, string interpolation with embedded expressions, and special constructs called tagged templates

Content preview

Advanced JavaScript with correct
answers 100% 2025
does the `ternary operator` looks like in javascript? - an expression ? This happens
when its true : This happens when its false

How to import a function from another module in JavaScript? - import {functionname}
from "./folder/filename"

What is a shallow copy on an object? - A copy whose properties share the same
references (point to the same underlying values) as those of the source object from
which the copy was made.

What is a callback function? Tell some examples of its usage. - A callback function is a
function that is passed as an argument to another function and is executed after some
kind of event.
setTimeout and addEventListeners are Callback functions

What is object destructuring in javascript? - Object destructuring in JavaScript is a
feature that allows you to extract properties from an object and assign them to variables
you can directly access them by their variable names rather than having to reference
them through the object.

What is array destructuring in javascript? - Allows extract elements from an array and
assign them to variables.
It uses a syntax similar to array literals, but with variable names instead of values.

What is the spread operator in `js` ? - It allows an iterable (such as an array or string) to
be expanded in places where zero or more elements (for arrays) or characters (for
strings) are expected.

What are the differences between the `arrow` function and the regular `function`? - You
cant call an arrowfunction before the declaration, but with the regular function you can
call it before you declare it

What is the `import` keyword used for? - To import bindings that are exported by
another module,

What is the `required` used for? - to include external modules that exist in separate files.

What are template literals? - Literals delimited with backtick ( ` ) characters, allowing for
multi-line strings, string interpolation with embedded expressions, and special
constructs called tagged templates

Document information

Uploaded on
November 1, 2025
Number of pages
1
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$9.99

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

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Wairimumburia
3.5
(2)
Sold
25
Followers
3
Items
2826
Last sold
1 week ago




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