• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 12 páginas
Examen

Salesforce Javascript Developer 1 Exam Questions And Answers

Document preview thumbnail
Vista previa 2 fuera de 12 páginas

SALESFORCE JAVASCRIPT DEVELOPER 1 EXAM QUESTIONS AND ANSWERS

Vista previa del contenido

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;
}

Información del documento

Subido en
29 de octubre de 2025
Número de páginas
12
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$14.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
millyphilip
3.7
(563)
Vendido
3018
Seguidores
1964
Artículos
47979
Última venta
6 horas hace




Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes