Keyword

Result: 65 questions

What is the result of the below JavaScript code when the functions get called in the order as mentioned?

var a = 5;
function first() {
    a = 6;
}

function second() {
    alert(a);
}
Quiz

Which of the following JavaScript code snippet would create an object?

function() {
    var a = 10;
    if(a > 5) {
        a = 7;
    }
    alert(a);
}
Quiz

Which is the use of typeof operator in JavaScript?

function() {
    var a = 10;
    if(a > 5) {
        a = 7;
    }
    alert(a);
}
Quiz

What is the result of the below JavaScript code when the functions get called in the order as mentioned?

function first() {
    window.a = 3;
}

function second() {
    alert(a);
}
Quiz

Which of the following statements is valid for the features of JavaScript?

Quiz

© 2017 QuizBucket.org