Quiz 7: What will be logged to the console when the following code executes?
javascript
function greet() { console.log(this.message); } const obj = { message: "Hello, world!" }; const greetObj = greet.bind(obj); greetObj(); // ?
javascript
function greet() { console.log(this.message); } const obj = { message: "Hello, world!" }; const greetObj = greet.bind(obj); greetObj(); // ?
Anonymous Quiz
53%
Hello, world!
30%
undefined
5%
Error
13%
This will not run.
Padhte padhte mood off hogya to movie aur webseries 🍿🎥 dekh lo na
https://t.me/MovieWebseriesVideo
Aur apne folder me add krlo bta rhe hain fayde me rhoge 😂
👉 https://t.me/addlist/QYOZWFI6axE3NzI1
https://t.me/MovieWebseriesVideo
Aur apne folder me add krlo bta rhe hain fayde me rhoge 😂
👉 https://t.me/addlist/QYOZWFI6axE3NzI1
1. What is the result of the following expression?
[] + [] == [] + {}
[] + [] == [] + {}
Anonymous Quiz
19%
true
47%
false
19%
undefined
14%
NaN
2. What is the output of the following code?
console.log(0.1 + 0.2 == 0.3);
console.log(0.1 + 0.2 == 0.3);
Anonymous Quiz
66%
true
25%
false
7%
NaN
2%
undefined
3. Which method can be used to check if an object has a certain property in JavaScript?
Anonymous Quiz
26%
hasProperty()
37%
hasOwnProperty()
23%
hasAttribute()
14%
isOwnProperty()
5. What will be the output of the following code?
console.log([] == ![]);
console.log([] == ![]);
Anonymous Quiz
22%
true
46%
false
27%
undefined
5%
NaN
❤1
This media is not supported in your browser
VIEW IN TELEGRAM
Kuch jyada hi relatable hogya 😂 😢 join for relatable memes 👉 @MEMES_Z0NE
___ is an open source JavaScript library that allows support for different levels of experiences based on the capabilities of each browser.
Anonymous Quiz
24%
Navigator
10%
Modernizr
24%
Geolocation
41%
Google API
Which of the following JavaScript methods is used to convert a JSON string into a JavaScript object?
Anonymous Quiz
15%
a) JSON.decode()
36%
b) JSON.stringify()
21%
c) JSON.parse()
28%
d) JSON.convert()
In which HTML element do we include the JavaScript code?
Anonymous Quiz
4%
a) <js>
78%
b) <script>
16%
c) <javascript>
2%
d) <code>
Which of the following is NOT a valid way to create a variable in JavaScript?
Anonymous Quiz
14%
var x = 5;
14%
let y = 10;
65%
constant z = 15;
6%
const w = 20;
In React, what does JSX stand for?
Anonymous Quiz
47%
A) JavaScript XML
12%
B) JavaScript Xtreme
35%
C) JavaScript Extended
6%
D) Java Syntax XML