JavaScript-Developer-I Exam Question 61

Refer to the code below:
let o = {
get js() {
let city1 = String("st. Louis");
let city2 = String(" New York");
return {
firstCity: city1.toLowerCase(),
secondCity: city2.toLowerCase(),
}
}
}
What value can a developer expect when referencing o.js.secondCity?
  • JavaScript-Developer-I Exam Question 62

    A developer is setting up a new Node.js server with a client library that is built using events and callbacks.
    The library:
    * Will establish a web socket connection and handle receipt of messages to the server
    * Will be imported with require, and made available with a variable called ws.
    The developer also wants to add error logging if a connection fails.
    Given this information, which code segment show the correct way to set up a client two events that listen at execution time?
    A)

    B)

    C)

    D)
  • JavaScript-Developer-I Exam Question 63

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

    Refer to the code below:

    Considering that JavaScript is single-threaded, what is the output of line 08 after the code executes?
  • JavaScript-Developer-I Exam Question 65

    GIven a value, which three options can a developer use to detect if the value is NaN?
    Choose 3 answers !