최신 JavaScript-Developer-I 무료덤프 - Salesforce Certified JavaScript Developer I
Refer the code below.
x=3.14;
function myfunction() {
"use strict";
y=x;
}
z=x;
myFunction();
x=3.14;
function myfunction() {
"use strict";
y=x;
}
z=x;
myFunction();
정답:
Z is equal to 3.14
Use strict has effect only on line 5.
Line 5 throws an error
Use strict has effect only on line 5.
Line 5 throws an error
Refer to the followingcode:
정답: D
In the browser, the window object is often used to assign variables that require the broadest scope in an application Node.js application does not have access to the window object by default.
Which two methods areused to address this ?
Choose 2 answers
Which two methods areused to address this ?
Choose 2 answers
정답: D
developer creates a new web server that uses Node.js. It imports a server library that uses events and callbacks for handling server functionality.
The server library is imported with require and is made available to the code by a variable named server. The developer wants to log any issues that the server has while booting up.
Given the code and the information thedeveloper has, which code logs an error at boost with an event?
The server library is imported with require and is made available to the code by a variable named server. The developer wants to log any issues that the server has while booting up.
Given the code and the information thedeveloper has, which code logs an error at boost with an event?
정답: C
A developer wants to create an object from a function in the browser using the code below.
What happens due to the lack of the mm keyword on line 02?
What happens due to the lack of the mm keyword on line 02?
정답: C
Refer to the following array:
Let arr = [ 1,2, 3, 4, 5];
Which three options result in x evaluating as [3, 4, 5] ?
Choose 3 answers.
Let arr = [ 1,2, 3, 4, 5];
Which three options result in x evaluating as [3, 4, 5] ?
Choose 3 answers.
정답: B,C,E
The developer wants to test the array shown:
const arr = Array(5).fill(0)
Which two tests are the most accurate for this array ?
Choose 2 answers:
const arr = Array(5).fill(0)
Which two tests are the most accurate for this array ?
Choose 2 answers:
정답: B,C
Refer to the code below:
Let foodMenu1 = ['pizza', 'burger', 'French fries'];
Let finalMenu = foodMenu1;
finalMenu.push('Garlic bread');
What is the value of foodMenu1 after the code executes?
Let foodMenu1 = ['pizza', 'burger', 'French fries'];
Let finalMenu = foodMenu1;
finalMenu.push('Garlic bread');
What is the value of foodMenu1 after the code executes?
정답: A
A developer at Universal Containers is creating their new landing pagebased on HTML, CSS, and JavaScript.
The website includes multiple external resources that are loaded when the page is opened.
To ensure that visitors have a good experience, a script named personalizeWebsiteContent needs to be executed when the webpage isloaded and there is no need to wait for the resources to be available.
Which statement should be used to call personalizeWebsiteContent based on the above business requirement?
The website includes multiple external resources that are loaded when the page is opened.
To ensure that visitors have a good experience, a script named personalizeWebsiteContent needs to be executed when the webpage isloaded and there is no need to wait for the resources to be available.
Which statement should be used to call personalizeWebsiteContent based on the above business requirement?
정답: B
Given the code below:
FunctionmyFunction(){
A =5;
Var b =1;
}
myFunction();
console.log(a);
console.log(b);
What is the expected output?
FunctionmyFunction(){
A =5;
Var b =1;
}
myFunction();
console.log(a);
console.log(b);
What is the expected output?
정답: D
Which statement can a developer apply to increment the browser's navigation history without a page refresh?
정답: B
Refer to the following array:
Let arr = [1, 2, 3, 4, 5];
Which three options result in x evaluating as [1,2]?
Choose 3 answer
Let arr = [1, 2, 3, 4, 5];
Which three options result in x evaluating as [1,2]?
Choose 3 answer
정답: A,B,E
Which three browser specific APIs are available for developers to persist data between page loads ?
Choose 3 answers
Choose 3 answers
정답: A,C,E
Refer to the code below:
Line 05 causes an error.
What are the values of greeting and salutation once code completes?
Line 05 causes an error.
What are the values of greeting and salutation once code completes?
정답: B
Refer to the following object:
const cat ={
firstName: 'Fancy',
lastName: ' Whiskers',
Get fullName() {
return this.firstName + ' ' + this.lastName;
}
};
How can a developer access the fullName property for cat?
const cat ={
firstName: 'Fancy',
lastName: ' Whiskers',
Get fullName() {
return this.firstName + ' ' + this.lastName;
}
};
How can a developer access the fullName property for cat?
정답: C
Refer tothe code below:
What is the value of result after line 10 executes?
What is the value of result after line 10 executes?
정답: B
Given the code below:
Setcurrent URL ();
console.log('The current URL is: ' +url );
functionsetCurrentUrl() {
Url = window.location.href:
What happens when the code executes?
Setcurrent URL ();
console.log('The current URL is: ' +url );
functionsetCurrentUrl() {
Url = window.location.href:
What happens when the code executes?
정답: D