JavaScript-Developer-I Exam Question 41

Considering type coercion, what does the following expression evaluate to?
True + '13' + NaN
  • JavaScript-Developer-I Exam Question 42

    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?
  • JavaScript-Developer-I Exam Question 43

    What are two unique features of functions defined with a fat arrow as compared to normal function definition?
    Choose 2 answers
  • JavaScript-Developer-I Exam Question 44

    Refer to the code below:
    function foo () {
    const a =2;
    function bat() {
    console.log(a);
    }
    return bar;
    }
    Why does the function bar have access to variable a ?
  • JavaScript-Developer-I Exam Question 45

    Refer to the code below:
    let sayHello = () => {
    console.log ('Hello, world!');
    };
    Which code executes sayHello once, two minutes from now?