How do you find the number with the highest value of variable a and b?
Correct Answer: Math.max(a, b)
Explanation:
Note: This Question is unanswered, help us to find answer for this one
JavaScript Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More JavaScript MCQ Questions
How can you convert a comma separated string variable txt into an array?
Which is not a valid JavaScript Assignment Operator?
What's the output? var result = (function(a) { return a*a; }(5.5)); alert(result);
What's the output? if(typeof(Storage)!=='undefined') { localStorage.age=5; sessionStorage.age=5; alert(localStorage.age + sessionStorage.age); } else { alert('Sorry, your browser does not support web storage...'); }
What's the output? /e/.exec('The best things in life are free!');
What is a potential pitfall with using typeof bar === 'object' to determine if bar is an object?
Which statement about hoisted declarations in Javascript is true? If a value is assigned to a variable during the declaration (example: var x = 10;) then ...
What is the type of n? var n = 1121212.233333333; typeof n;
var myObject = { foo: 'bar', func: function() { var self = this; console.log('outer func: this.foo = ' + this.foo); console.log('outer func: self.foo = ' + self.foo); (function() { console.log('inner func: this.foo = ' + this.foo); console.log('inner func: self.foo = ' + self.foo); }()); } }; myObject.func();
var x = 1.0; typeof x;