Question 21

Refer to the code declarations below:

Which three expressions return the string JavaScript?
Choose 3 answers
  • Question 22

    Refer to the code below:
    Let foodMenu1 = ['pizza', 'burger', 'French fries'];
    Let finalMenu = foodMenu1;
    finalMenu.push('Garlic bread');
    What is the value of foodMenu1 after the code executes?
  • Question 23

    Refer to the code below:
    function changeValue(param) {
    Param =5;
    }
    Let a =10;
    Let b =5;
    changeValue(b);
    Const result = a+ " - "+ b;
    What is the value of result when code executes?
  • Question 24

    Refer to code below:
    console.log(0);
    setTimeout(() => (
    console.log(1);
    });
    console.log(2);
    setTimeout(() => {
    console.log(3);
    ), 0);
    console.log(4);
    In which sequence will the numbers be logged?
  • Question 25

    Given the code below:
    Setcurrent URL ();
    console.log('The current URL is: ' +url );
    function setCurrentUrl() {
    Url = window.location.href:
    What happens when the code executes?