[2024年10月]更新のJavaScript-Developer-Iブレーン問題集でJavaScript-Developer-I問題で最高得点を目指すため今すぐ試そう [Q107-Q122]

Share

[2024年10月]更新のJavaScript-Developer-Iブレーン問題集でJavaScript-Developer-I問題で最高得点を目指すため今すぐ試そう

JavaScript-Developer-I試験問題集でベスト問題集を無料で試そうJavaScript-Developer-I試験問題


Salesforce JavaScript-Developer-I試験に備えるには、候補者はデータ型、関数、イベント、オブジェクトを含むJavaScriptプログラミングの概念を強く理解している必要があります。また、Apex、Visualforce、およびLightningコンポーネントを含むSalesforceプラットフォームの知識も必要です。候補者は、Salesforce JavaScript Developer I認定トレーニングコースを受講して、試験に合格するために必要なスキルと知識を身につけることもできます。

 

質問 # 107
Refer to the code below:

Which two function can replace line 01 and return 58 to sum? Choose 2 answers

  • A. const addBy = num1 (num2) => num1 + num2 ;
  • B. const addBy = function (num1) {
    Return function (num2) {
    }
    }
  • C. Const addby = function (num1) (
    Return function (num2) (
    }
    }
  • D. const addBy = (num1) num1 + num2

正解:A、B


質問 # 108
Refer to the code below:
new Promise((resolve, reject) => {
const fraction = Math.random();
if( fraction >0.5) reject("fraction > 0.5, " + fraction);
resolve(fraction);
})
.then(() =>console.log("resolved"))
.catch((error) => console.error(error))
.finally(() => console.log(" when am I called?"));

When does Promise.finally on line 08 get called?

  • A. When resolved or rejected
  • B. When rejected
  • C. When resolved
  • D. When resolved and settled

正解:A


質問 # 109
Refer to the code below:
<html lang="en">
<tableonclick="console.log(Table log');">
<tr id="row1">
<td>Click me!</td>
</tr>
<table>
<script>
functionprintMessage(event) {
console.log('Row log');
}
Let elem = document.getElementById('row1');
elem.addEventListener('click', printMessage, false);
</script>
</html>
Which code change should be made for the console to log only Row log when 'Click me! ' is clicked?

  • A. Add event.removeEventListener(); toprintMessage function.
  • B. Addevent.removeEventListener(); to window.onLoad event handler.
  • C. Add event.stopPropagation(); to printMessage function.
  • D. Add.event.stopPropagation(); to window.onLoad event handler.

正解:C


質問 # 110
Refer to the HTML below:
<div id="main">
<ul>
<li>Leo</li>
<li>Tony</li>
<li>Tiger</li>
</ul>
</div>
Which JavaScript statement results in changing " Tony" to "Mr. T."?

  • A. document.querySelectorAll('$main $TONY').innerHTML = ' Mr. T. ';
  • B. document.querySelector('$main li.Tony').innerHTML = ' Mr. T. ';
  • C. document.querySelector('$main li:nth-child(2)'),innerHTML = ' Mr. T. ';
  • D. document.querySelector('$main li:second-child').innerHTML = ' Mr. T. ';

正解:C


質問 # 111
A team that works on a big project uses npm to deal with projects dependencies.
A developer added a dependency does not get downloaded when they execute npm
install.
Which two reasons could be possible explanations for this?
Choose 2 answers

  • A. The developer added the dependency as a dev dependency, and
    NODE_ENV is set to production.
  • B. The developer missed the option --add when adding the dependency.
  • C. The developer added the dependency as a dev dependency, and
    NODE_ENV
    Is set to production.
  • D. The developer missed the option --save when adding the dependency.

正解:A、C、D


質問 # 112
A team that works on a big project uses npm to deal with projects dependencies.
A developer added a dependency does not get downloaded when they execute npm install.
Which two reasons could be possible explanations for this?
Choose 2 answers

  • A. The developer missed the option --add when adding the dependency.
  • B. The developer missed the option --save when adding the dependency.
  • C. The developer added the dependency as a dev dependency, and NODE_ENV is set to production.
  • D. The developer added the dependency as a dev dependency, and NODE_ENV Is set to production.

正解:B、C、D


質問 # 113
Given the code below:
const delay = sync delay => {
Return new Promise((resolve, reject) => {
setTimeout (resolve, delay);});};
const callDelay =async () =>{
const yup =await delay(1000);
console.log(1);
What is logged to the console?

  • A. 1 3 2
  • B. 2 3 1
  • C. 2 1 3
  • D. 1 2 3

正解:B


質問 # 114
The developer has a function that prints "Hello" to an input name. To test this, thedeveloper created a function that returns "World". However the following snippet does not print " Hello World".

What can the developer do to change the code to print "Hello World" ?

  • A. Change line 7 to ) () ;
  • B. Change line 9 to sayHello(world) ();
  • C. Change line 2 to console.log('Hello' , name() );
  • D. Change line 5 to function world ( ) {

正解:C


質問 # 115
Given the following code:
document.body.addEventListener(' click ', (event) => {
if (/* CODE REPLACEMENT HERE */) {
console.log('button clicked!');
)
});
Which replacement for the conditional statement on line 02 allows a developer to
correctly determine that a button on page is clicked?

  • A. button.addEventListener('click')
  • B. event.target.nodeName == 'BUTTON'
  • C. Event.clicked
  • D. e.nodeTarget ==this

正解:B


質問 # 116
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?

  • A. Server.on ('error', (error) => {console.log('ERROR', error);});
  • B. Server.error ((server) => {console.log('ERROR', error);});
  • C. Server.catch ((server) => {console.log('ERROR', error);});
  • D. Try{server.start();} catch(error) {console.log('ERROR', error);}

正解:A


質問 # 117
Given two expressions var1 and var2. What are two valid ways to return the logical AND of the two expressions and ensure it is data type Boolean ?
Choose 2 answers:

  • A. var1 && var2
  • B. Boolean(var1 && var2)
  • C. var1.toBoolean() && var2toBoolean()
  • D. Boolean(var1) && Boolean(var2)

正解:B、D


質問 # 118
Refer to the code below:
Let inArray =[ [ 1, 2 ] , [ 3, 4, 5 ] ];
Which two statements result in the array [1, 2, 3, 4, 5] ?
Choose 2 answers

  • A. [ ]. concat ( [ ....inArray ]);
  • B. [ ]. Concat.apply ([ ], inArray);
  • C. [ ]. concat.apply(inArray, [ ]);
  • D. []. Concat (... inArray);

正解:B、D


質問 # 119
A developer is required to write a function that calculates the sum of elements in an
array but is getting undefined every time the code is executed. The developer needs to find
what is missing in the code below.
Const sumFunction = arr => {
Return arr.reduce((result, current) => {
//
Result += current;
//
), 10);
);
Which option makes the code work as expected?

  • A. Replace line 02 with return arr.map(( result, current) => (
  • B. Replace line 03 with if(arr.length == 0 ) ( return 0; )
  • C. Replace line 04 with result = result +current;
  • D. Replace line 05 with return result;

正解:D


質問 # 120
developer removes the HTML class attribute from the checkout button, so now it is simply:
<button>Checkout</button>.
There is a test to verify the existence of the checkout button, however it looks for a button with class= "blue". The test fails because no such button is found.
Which type of test category describes this test?

  • A. False positive
  • B. True negative
  • C. True positive
  • D. False negative

正解:D


質問 # 121
Refer to the following code block:

What is the console output?

  • A. > Uncaught Reference Error
  • B. > Better student Jackie got 100% on test.
  • C. > Jackie got 70% on test.
  • D. > Better student Jackie got 70% on test.

正解:B


質問 # 122
......

検証済みのJavaScript-Developer-Iテスト問題集と解答には的確な224問題と解答があります:https://jp.fast2test.com/JavaScript-Developer-I-premium-file.html

最新版を今すぐ試そうJavaScript-Developer-I認定有効な試験問題集:https://drive.google.com/open?id=1tbuNCm9d7Ck_vxO7Uhdx7Bld996rQO2n


弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

我々の働いている時間: ( GMT 0:00-15:00 )
月曜日から土曜日まで

サポート: 現在連絡 

English Deutsch 繁体中文 한국어