[2025年最新] 最高のJavaScript-Developer-I試験問題集を使って- 実際の試験問題と解答を解こう
テストエンジンを練習してJavaScript-Developer-Iテスト問題
Salesforce JavaScript-Developer-I認定は、SalesforceプラットフォームでJavaScriptを使用してカスタムアプリケーションの開発に関する開発者の専門知識を紹介する非常に尊敬される認定です。この認定は、専門家がキャリアの機会を強化し、収益の可能性を高め、業界の専門家として認められるのに役立ちます。 Salesforce Certified JavaScript Developer I Examに合格するには、JavaScriptプログラミング言語とSalesforceプラットフォームでのアプリケーションに関する強力な知識が必要です。
質問 # 96
A developer is setting up a Node,js server and is creating a script at the root of the source code, index,js, that will start the server when executed. The developer declares a variable that needs the folder location that the code executes from.
Which global variable can be used in the script?
- A. _dirname
- B. this.path
- C. _filename
- D. window.location
正解:C
質問 # 97
A developer wants to create a simple image upload in the browser using the File API. The HTML is below:
The JavaScript portion is:
In lines 04 and 08, which code allows the user to select an image from their local computer, and to display the image in the browser?
- A. 04 const reader = new File ( ) ;
08 if (file) URL , createObjectURL (file) ; - B. 04 const reader = new File ( ) ;
08 if (file) ,reader, readerAsDataURL (file) ; - C. 04 const reader = new FileReader ( ) ;
08 if (file) URL , createObjectURL (file) ; - D. 04 const reader = new FileReader ( ) ;
08 if (file) reader , createAsDataURL (file) ;
正解:A
質問 # 98
Universal Containers recently launched its new landing page to host a crowd-funding campaign. The page uses an external library to display some third-party ads. Once the page is fully loaded, it creates more than 50 new HTML items placed randomly inside the DOM, like the one in the code below:
All the elements includes the same ad-library-item class, They are hidden by default, and they are randomly displayed while the user navigates through the page.
- A. Use the browser console to execute a script that prevents the load event to be fired.
- B. Use the DOM inspector to prevent the load event to be fired.
- C. Use the browser to execute a script that removes all the element containing the class ad-library-item.
- D. Use the DOM inspector to remove all the elements containing the class ad-library-item.
正解:C
質問 # 99
At Universal Containers, every team has its own way of copying JavaScript objects. The code snippet shows an implementation from one team:
What is the output of the code execution?
- A. TypeError: Assignment to constant variable
- B. Hello John Doe
- C. TypeError: dan.name is not a function
- D. Hello Dan Doe
正解:C
質問 # 100
Refer to the code below:
What is the output of this function when called with an empty array?
- A. Return 5
- B. Return 0
- C. Return NaN
- D. Return Infinity
正解:A
質問 # 101
Refer to the code below:
Async funct on functionUnderTest(isOK) {
If (isOK) return 'OK' ;
Throw new Error('not OK');
)
Which assertion accurately tests the above code?
- A. Console.assert (await functionUnderTest(true), ' not OK ')
- B. Console.assert (await functionUnderTest(true), ' not OK ')
- C. Console.assert (await functionUnderTest(true), 'OK')
- D. Console.assert (await functionUnderTest(true), ' OK ')
正解:C
質問 # 102
Given the code below:
Function myFunction(){
A =5;
Var b =1;
}
myFunction();
console.log(a);
console.log(b);
What is the expected output?
- A. Line 08 outputs the variable, but line 09 throws an error.
- B. Both lines 08 and 09 are executed, but values outputted are undefined.
- C. Both lines 08 and 09 are executed, and the variables are outputted.
- D. Line 08 thrones an error, therefore line 09 is never executed.
正解:A
質問 # 103
A developer copied a JavaScript object:
How does the developer access dan's forstName,lastName? Choose 2 answers
- A. dan,firstname ( ) + dan, lastName ( )
- B. dan, firstName = dan.lastName
- C. dan,name ( )
- D. dan,name
正解:B、C
質問 # 104
Given the requirement to refactor the code above to JavaScript class format, which class definition is correct?
A)
B)
C)
D)
- A. Option B
- B. Option C
- C. Option A
- D. Option D
正解:C
質問 # 105
Universal Containers (UC) notices that its application that allows users to search for
accounts makes a network request each time a key is pressed. This results in too many
requests for the server to handle.
● Address this problem, UC decides to implement a debounce function on string change
handler.
What are three key steps to implement this debounce function?
Choose 3 answers:
- A. If there is an existing setTimeout and the search string changes, cancel the existing
setTimeout using the persisted timerId and replace it with a new setTimeout. - B. Ensure that the network request has the property debounce set to true.
- C. If there is an existing setTimeout and the search string change, allow the existing
setTimeout to finish, and do not enqueue a new setTimeout. - D. Store the timeId of the setTimeout last enqueued by the search string change handle.
- E. When the search string changes, enqueue the request within a setTimeout.
正解:B、C、E
質問 # 106
Refer to the code below:
Line 05 causes an error.
What are the values of greeting and salutation once code completes?
- A. Greeting is Hello and salutation is Hello, Hello.
- B. Greeting is Hello and salutation is I say hello.
- C. Greeting is Goodbye and salutation is I say Hello.
- D. Greeting is Goodbye and salutation is Hello, Hello.
正解:A
質問 # 107
Refer to code below:
Let first = 'who';
Let second = 'what';
Try{
Try{
Throw new error('Sad trombone');
}catch (err){
First ='Why';
}finally {
Second ='when';
} catch (err) {
Second ='Where';
}
What are the values for first and second once the code executes ?
- A. First is why and second is when
- B. First is who and second is where
- C. First is why and second is where
- D. First is Who and second is When
正解:A
質問 # 108
Refer to the code below.
After changing the string index values, the of atr is Javascript''. What is the reason for this value?
- A. Non-primitive values are immutable.
- B. Primitive values are immutable
- C. Primitive values are mutable.
- D. Non-primitive values are mutable.
正解:D
質問 # 109
A developer creates a class that represents a blog post based on the requirements that a Post should have a body, author, and view count. The code is shown below:
Which statement should be inserted in the placeholder on line 02 to allow for a variable to be sent to a new instance of a port with the three attributes correctly populated?
- A. Constructor (body, author, viewCount) (
- B. Super (body, author, viewCount) (
- C. Function Post (body, author, viewCount) (
- D. Constructor ( ) (
正解:A
質問 # 110
Refer to the code snippet:
A developer writes this code to return a message to a user attempting to register a new username. If the username is available, a variable named msg is declared and assigned a value on line 03.
What is the return of msg when getivelibilityMessage ('' bewUserName') is executed and getAvailability (''newUserName'') returns false?
- A. ''Username available''
- B. undefined
- C. ''newUsername''
- D. ''msg is not defined''
正解:B
質問 # 111
Refer to the HTML below:
Which JavaScript statement results in changing ''Tony'' to ''Mr. T. ''?
- A. Document.querySelector (''#main li:nth-child (2) ') , innerHTML = 'Mr . T ';
- B. Document.querySelector (' '#main li:second-child') innerHTML, = Mr, T, ';
- C. Document.querySelectorAll ('#main # TONY ') , innerHTML = Mr, T , ' ;
- D. Document.querySelectorAll ( '#main li, Tony ' ) innerHTNL = Mr, T , ' ;
正解:C
質問 # 112
A developer wants to create an object from a function in the browser using the code below:
Function Monster() { this.name = 'hello' };
Const z = Monster();
What happens due to lack of the new keyword on line 02?
- A. The z variable is assigned the correct object.
- B. Window.name is assigned to 'hello' and the variable z remains undefined.
- C. Window.m is assigned the correct object.
- D. The z variable is assigned the correct object but this.name remains undefined.
正解:B
質問 # 113
......
Salesforce JavaScript-Developer-I認定を獲得するには、候補者は65%の合格スコアで60質問の複数選択試験に合格する必要があります。この試験は105分でタイミングを出し、データモデリング、ユーザーインターフェイス開発、APEX、Visualforceなど、さまざまなトピックをカバーしています。候補者は、JavaScriptとSalesforceとの統合を強く理解する必要があります。
JavaScript-Developer-I実際の問題アンサーPDFには100%カバー率リアルな試験問題:https://www.passtest.jp/Salesforce/JavaScript-Developer-I-shiken.html
JavaScript-Developer-Iリアルな試験問題テストエンジン問題集トレーニング224問題:https://drive.google.com/open?id=1_CFIgKrsayT3vmgKux1B3R4_GcAvwGKX