JavaScript-Developer-I Exam Question 1

Refer to the code below:
01 async function functionUnderTest(isOK) {
02 if (isOK) return ' OK ' ;
03 throw new Error( ' not OK ' );
04 }
Which assertion accurately tests the above code?
  • JavaScript-Developer-I Exam Question 2

    Console logging methods that allow string substitution:
  • JavaScript-Developer-I Exam Question 3

    Which statement allows a developer to update the browser navigation history without a page refresh?
  • JavaScript-Developer-I Exam Question 4

    Which option is true about the strict mode in imported modules?
  • JavaScript-Developer-I Exam Question 5

    Given the following code:
    let x = ( ' 15 ' + 10) * 2;
    What is the value of x?