• 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 6 pages
Exam (elaborations)

Salesforce Javascript Developer 1 Exam Study Questions And Answers

Document preview thumbnail
Preview 2 out of 6 pages

SALESFORCE JAVASCRIPT DEVELOPER 1 EXAM STUDY QUESTIONS AND ANSWERS

Content preview

SALESFORCE JAVASCRIPT
DEVELOPER 1 EXAM STUDY
QUESTIONS AND ANSWERS

Prototype inheritance - ANSWER-an in memory object that defines the
properties and functions of other objects

JSON spec is based on - ANSWER-object literal notation

shift() - ANSWER-remove the first element and return that elemend

unshift() - ANSWER-Adds new elements to the beginning of an array, and
returns the new length

sort() - ANSWER-a-b is sort asc. and b-a is sort descending

var declaration is hoisted BUT - ANSWER-is undefined until assigned a value

Are function expressions hoisted (e.g. var s = function (){} - ANSWER-NO

Are function definitions hoisted (e.g. function s (){} - ANSWER-YES

What is not allowed in strict mode? - ANSWER-1) using a var without
declaring it.

2) deleting a var or object

3) duplicating a parameter name

Object.assign(target, source) - ANSWER-source copies and overwrites target

Classes in JavaScript (four things) - ANSWER-1) Are special functions which
are primarily syntactical sugar over prototype based inheritance

2) Two ways to define a class: class declaration, class expression

3) Class expressions can be named or unnamed

4) class declarations are NOT hoisted

jquery defines a function with ____ and Lodash with ______ - ANSWER-$ and __

What's true about var test = new function(){} - ANSWER-It inherits the global
scope even if called in a block

, What are two ways to access data in a converted JSON string? - ANSWER-
user.email and user[email]

Scope of variables declared without the var keyword - ANSWER-become
global no matter where it's declared

Object.freeze() - ANSWER-Freezes an object making it immutable.

Prevents adding new properties

Doesn't allow removing of existing properties

Doesn't allow you to change immediate properties of the object

Attributes of child objects can be modified

Object.seal() - ANSWER-seals an object

Allows changing existing properties of an object

Prevents adding new properties

Doesn't allow removing existing properties

What is true about const objB=objA? - ANSWER-They both now point to the
same address in the stack so if one changes, so does the other

popstate - ANSWER-when an event is dispatched to the window each time
the active history entry changes between to history entires for the same
document

navigate() - ANSWER-loads a specified URL

pushstate() - ANSWER-pushes given data onto the session history stack WITH
NO PAGE REFRESH

valid events with interacting with the browser - ANSWER-1) Contextmenu

2) mousedown

3) keyup

To persist an object in localStorage, you need to use - ANSWER-JSON.stringify

output the screen width of the element - ANSWER-
document.getElementById('id').style.width

select a specific <li> - ANSWER-document.querySelector('#main li:nth-
child(2)')

Document information

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

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.
EduSprint
3.9
(8)
Sold
69
Followers
5
Items
7078
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