• 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 2 out of 10 pages
Exam (elaborations)

Advanced JavaScript with correct answers 100% 2025

Document preview thumbnail
Preview 2 out of 10 pages

Advanced JavaScript with correct answers 100% 2025 What does it mean that "JavaScript is a prototype-based language?" - Correct Answer Object properties and methods can be shared through generalized objects-blueprints-that have that ability to be cloned and extended. 1. Create an object that is a prototype. 2. create a new instance = prototype name. 3. You can add properties and methods to the prototype part of JavaScript. Other languages use classes as blueprints rather than constructor functions. - Correct Answer True An object in JavaScript is a data type that is composed of a collection of names or keys and values, represented in name:value pairs. - Correct Answer True The name:value pairs in an object can consist of properties that may contain any data type — including strings, numbers, and Booleans — as well as methods, which are functions contained within an object. - Correct Answer True What are 2 ways to create an object? - Correct Answer The object literal, which uses curly brackets: {} The object constructor, which uses the new keyword. An object is a data type. - Correct Answer True Any data type can be store in a variable. - Correct Answer True What's an example of an object literal? - Correct Answer // Initialize object literal with curly brackets const objectLiteral = {}; How do you create an object with a constructor function? - Correct Answer // Initialize object constructor with new Object const objectConstructor = new Object();

Content preview

Advanced JavaScript with correct
answers 100% 2025
What does it mean that "JavaScript is a prototype-based language?" - Correct Answer Object properties
and methods can be shared through generalized objects-blueprints-that have that ability to be cloned
and extended.

1. Create an object that is a prototype.

2. create a new instance = prototype name.

3. You can add properties and methods to the prototype part of JavaScript.



Other languages use classes as blueprints rather than constructor functions. - Correct Answer True



An object in JavaScript is a data type that is composed of a collection of names or keys and values,
represented in name:value pairs. - Correct Answer True



The name:value pairs in an object can consist of properties that may contain any data type — including
strings, numbers, and Booleans — as well as methods, which are functions contained within an object. -
Correct Answer True



What are 2 ways to create an object? - Correct Answer The object literal, which uses curly brackets: {}



The object constructor, which uses the new keyword.



An object is a data type. - Correct Answer True



Any data type can be store in a variable. - Correct Answer True



What's an example of an object literal? - Correct Answer // Initialize object literal with curly brackets

const objectLiteral = {};

, How do you create an object with a constructor function? - Correct Answer // Initialize object
constructor with new Object



const objectConstructor = new Object();



Example of an object - Correct Answer // Initialize gimli object

const gimli = {

name: "Gimli",

race: "dwarf",

weapon: "axe",

greet: function() {

return `Hi, my name is ${this.name}!`;

},

};



How many properties does the gimli object have? - Correct Answer 3



name:value pair, also known as key:value pair - Correct Answer True



What are two ways to access an object's properties? - Correct Answer Dot notation: .

Bracket notation: []



How would I retrieve the weapon property in the gimli object mentioned earlier? - Correct Answer //
Retrieve the value of the weapon property

gimli.weapon;



Outputs

"axe"

Document information

Uploaded on
November 1, 2025
Number of pages
10
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
2790
Last sold
5 days 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