JavaScript-Developer-I Exam Question 41
Refer to code below:
Let productSKU = '8675309' ;
A developer has a requirement to generate SKU numbers that are always 19 characters lon, starting with 'sku', and padded with zeros.
Which statement assigns the values sku0000000008675309 ?
Let productSKU = '8675309' ;
A developer has a requirement to generate SKU numbers that are always 19 characters lon, starting with 'sku', and padded with zeros.
Which statement assigns the values sku0000000008675309 ?
JavaScript-Developer-I Exam Question 42
A developer is wondering whether to use, Promise.then or Promise.catch, especially when a Promise throws an error?
Which two promises are rejected?
Which 2 are correct?
Which two promises are rejected?
Which 2 are correct?
JavaScript-Developer-I Exam Question 43
Given the following code:
Counter = 0;
const logCounter = () => {
console.log(counter);
);
logCounter();
setTimeout(logCOunter, 1100);
setInterval(() => {
Counter++
logCounter();
}, 1000);
What is logged by the first four log statements?
Counter = 0;
const logCounter = () => {
console.log(counter);
);
logCounter();
setTimeout(logCOunter, 1100);
setInterval(() => {
Counter++
logCounter();
}, 1000);
What is logged by the first four log statements?
JavaScript-Developer-I Exam Question 44
Refer to the following code:

Which two statements could be inserted at line 17 to enable the function call on line 18?
Choose 2 answers

Which two statements could be inserted at line 17 to enable the function call on line 18?
Choose 2 answers
JavaScript-Developer-I Exam Question 45
A developer is debugging a web server that uses Node.js. The server hits a runtime error every third request to an important endpoint on the web server.
The developer added a break point to the start script, that is at index, js at the root of the server's source code. The developer wants to make use of Chrome DevTools to debug.
Which command can be run to access DevTools and make sure the breakpoint is hit?
The developer added a break point to the start script, that is at index, js at the root of the server's source code. The developer wants to make use of Chrome DevTools to debug.
Which command can be run to access DevTools and make sure the breakpoint is hit?
