Which of the following is a single global function defined in the jQuery library?
jQuery()$()Queryanalysis()global()
jQuery()
Practice related MCQ quizzes and improve step by step.
Which of the following is a single global function defined in the jQuery library?
jQuery()$()Queryanalysis()global()jQuery()Java and JavaScript are same language?
Who is the inventor or JavaScript?
Inside which HTML element do we put the JavaScript?
<script>What will be output in console:
var animals = ['Tiger', 'Lion', 'Camel', 'Cow', 'Duck']; console.log(animals.slice(2, 4));
Array ["Camel", "Cow"]What is going to display with this js code:
var myArray = ['a', 'b', 'c']; console.log(myArray[-1]);
Which of these lines of code would replace the content of a webpage with “Saaaaaakib”?
document.body.innerHTML = "Saaaaaakib";
What sort of data type does the document variable store?
When you’re writing JS on a webpage, what is the name of the global variable that represents the DOM?
The DOM is the set of functionality that browsers provide to enable developers to access and manipulate webpages. What does DOM stand for?
const team = [
'Mashrafi',
'Sakib',
'Mahmudullah',
'Mushfiq',
'Tamim',
'Rubel',
'Aftab',
'Razzaq',
'Rafiq'
];
const [captain, assistant, ...players] = team;
consoloe.log(players);
What is the output of consoloe.log(players); in your console?
Array ["Mahmudullah", "Mushfiq", "Tamim", "Rubel", "Aftab", "Razzaq", "Rafiq"]const team = [
'Mashrafi',
'Sakib',
'Mahmudullah',
'Mushfiq',
'Tamim',
'Rubel',
'Aftab',
'Razzaq',
'Rafiq'
];
const [captain, assistant, ...players] = team;
consoloe.log(captain);
What is the output of consoloe.log(captain); in your console?
Considering the following snap of code, what is the expected result?
const gotNumber = 46;
if (gotNumber>45) {
var division = 'Second Division';
}
console.log(`Division is ${division} by number ${gotNumber}`);
Considering the following snap of code, what is the expected result?
const gotNumber = 46;
if (gotNumber>45) {
let division = 'Second Division';
}
console.log(`Division is ${division} by number ${gotNumber}`);
Considering the following snap of code, what is the expected result?
let dogName = 'Tom';
let catName = 'Jerry';
[dogName, catName] = [catName, dogName];
console.log(`Dog name: ${dogName}`);
Dog name: JerryWhen used as a constructor, like new MyFunction(), the value of this will be a brand new object provided by the JavaScript runtime. If we don’t explicitly return anything from that function, this will be considered its return value.
Apply or call method can be used to override the value of this?
What does the below line do considering it as the first line in your javascript file:
(function(){
alert(this);
})();