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

Salesforce JavaScript Developer 1 Exam Questions With 100% Correct Answers

Document preview thumbnail
Preview 2 out of 15 pages

Salesforce JavaScript Developer 1 Exam Questions With 100% Correct Answers A developer needs to pass an array as an argument, the current variable looks like an array but is not one. What can be used to convert this variable into an array? - answerlet arrayVar = A(myVar); const array1 = [1, 2, 3, 4]; const reducer = (accumulator, currentValue) = accumulator + currentValue; (e(reducer)); - answer10 Name two methods used to access Coordinated Universal Time, method converts a date to a string. - answertoISOString(); toUTCString(); Destructing Assignment Syntax const hero = { name: 'Batman', realName: 'Bruce Wayne' }; const {_____________________ } = hero; name; // = 'Batman', realName; realName; // = 'Bruce Wayne' - answername, realName Combining two arrays: const cars = ["Saab", "Volvo", "BMW"]; var food = ["pizza", "tacos", "burgers"]; - answer["Saab", "Volvo", "BMW", ...food]; What would this return? let num; if(num == '' || num == null) { num = true; } return num; - answertrue let fake; ((fake == 0)); //false ((fake == null)) // true What would this return? let count = null; if(count == undefined && count== null) { count = true; } return count; - answertrue So: undefined == null What would this return? let count = null; if(count == "" && count== null) { count = true; } return count; - answernull let fruit = [{type: 'Apple', price: 1.99, quantity: 3}, {type: 'Pear', price: 2.59, quantity: 2} ]; const cost = e((accumulator, currentValue) = {return(accumulator + currentV *currentVity)}, 0); - answer11.15 (correct total) What is the symbol data type? - answerSymbol is a built-in object whose constructor returns a symbol primitive — also called a Symbol value or just a Symbol — that's guaranteed to be unique. Symbols are often used to add unique property keys to an object that won't collide with keys any other code might add to the object, and which are hidden from any mechanisms other code will typically use to access the object. That enables a form of weak encapsulation, or a weak form of information hiding.


Document information

Uploaded on
June 7, 2024
Number of pages
15
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$12.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.
sirjoel
3.6
(20)
Sold
136
Followers
13
Items
12750
Last sold
1 month 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

Whoops! We can’t load your doc right now. Try again or contact support.