• Falsches Dokument? Kostenlos tauschen
  • Geschrieben von Student*innen, die bestanden haben
  • Sofort verfügbar nach Zahlung
  • Online lesen oder als PDF
Verkaufen
Wo studierst du
Deine Sprache
Document preview thumbnail
Vorschau 2 aus 12 Seiten
Prüfung

Salesforce Javascript Developer 1 Exam Questions And Answers

Document preview thumbnail
Vorschau 2 aus 12 Seiten

SALESFORCE JAVASCRIPT DEVELOPER 1 EXAM QUESTIONS AND ANSWERS

Inhaltsvorschau

SALESFORCE JAVASCRIPT
DEVELOPER 1 EXAM QUESTIONS
AND 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? - Correct
Answers -let arrayVar = Array.from(myVar);

const array1 = [1, 2, 3, 4];
const reducer = (accumulator, currentValue) => accumulator + currentValue;
console.log(array1.reduce(reducer)); - Correct Answers -10

Name two methods used to access Coordinated Universal Time, method converts a
date to a string. - Correct Answers -toISOString();
toUTCString();

Destructing Assignment Syntax
const hero = { name: 'Batman', realName: 'Bruce Wayne' };

const {_____________________ } = hero;

name; // => 'Batman', realName;
realName; // => 'Bruce Wayne' - Correct Answers -name, realName

Combining two arrays:
const cars = ["Saab", "Volvo", "BMW"];
var food = ["pizza", "tacos", "burgers"]; - Correct Answers -["Saab", "Volvo",
"BMW", ...food];

What would this return?
let num;
if(num == '' || num == null) {
num = true;
}
return num; - Correct Answers -true
let fake;
console.log((fake == 0)); //false
console.log((fake == null)) // true

, What would this return?
let count = null;
if(count == undefined && count== null) {
count = true;
}
return count; - Correct Answers -true
So:
undefined == null

What would this return?
let count = null;
if(count == "" && count== null) {
count = true;
}
return count; - Correct Answers -null

let fruit = [{type: 'Apple', price: 1.99, quantity: 3}, {type: 'Pear', price: 2.59, quantity: 2} ];

const cost = fruit.reduce((accumulator, currentValue) => {return(accumulator +
currentValue.price *currentValue.quantity)}, 0); - Correct Answers -11.15 (correct total)

What is the symbol data type? - Correct Answers -Symbol 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.

Every Symbol() call is guaranteed to return a unique Symbol. Every Symbol.for("key")
call will always return the same Symbol for a given value of "key". When
Symbol.for("key") is called, if a Symbol with the given key can be found in the global
Symbol registry, that Symbol is returned. Otherwise, a new Symbol is created, added to
the global Symbol registry under the given key, and returned.

In JS, null == undefined - Correct Answers -true

In JS, 0 == undefined - Correct Answers -false

In JS, 0 == false - Correct Answers -true

What is wrong with this code?
class Car {
constructor(brand) {
this.carname = brand;
}

Dokument Information

Hochgeladen auf
29. oktober 2025
Anzahl der Seiten
12
geschrieben in
2025/2026
Typ
Prüfung
Enthält
Fragen & antworten
$14.49

Falsches Dokument? Kostenlos tauschen Innerhalb von 14 Tagen nach dem Kauf und vor dem Herunterladen kannst du ein anderes Dokument wählen. Du kannst den Betrag einfach neu ausgeben.
Geschrieben von Student*innen, die bestanden haben
Sofort verfügbar nach Zahlung
Online lesen oder als PDF

Seller avatar
Bewertungen des Ansehens basieren auf der Anzahl der Dokumente, die ein Verkäufer gegen eine Gebühr verkauft hat, und den Bewertungen, die er für diese Dokumente erhalten hat. Es gibt drei Stufen: Bronze, Silber und Gold. Je besser das Ansehen eines Verkäufers ist, desto mehr kannst du dich auf die Qualität der Arbeiten verlassen.
millyphilip
3.7
(563)
Verkauft
3014
Anhänger
1964
Sachen
47828
Zuletzt verkauft
6 Jahren vor




Warum sich Studierende für Stuvia entscheiden

on Mitstudent*innen erstellt, durch Bewertungen verifiziert

Geschrieben von Student*innen, die bestanden haben und bewertet von anderen, die diese Studiendokumente verwendet haben.

Nicht zufrieden? Wähle ein anderes Dokument

Kein Problem! Du kannst direkt ein anderes Dokument wählen, das besser zu dem passt, was du suchst.

Bezahle wie du möchtest, fange sofort an zu lernen

Kein Abonnement, keine Verpflichtungen. Bezahle wie gewohnt per Kreditkarte oder Sofort und lade dein PDF-Dokument sofort herunter.

Student with book image

“Gekauft, heruntergeladen und bestanden. So einfach kann es sein.”

Alisha Student

Arbeitest du an deiner Quellenangabe?

Erstelle korrekte Quellenangaben in APA, MLA und Harvard mit unserem kostenlosen Zitiergenerator.

Arbeitest du an deiner Quellenangabe?

Häufig gestellte Fragen