Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
JavaScript Interview Questions and Answers
Home
Questions
JavaScript
0
votes
What's the output? function checkAge(data) { if (data === { age: 18 }) { console.log('You are an adult!'); }
asked
Feb 26
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
What's the output? function getPersonInfo(one, two, three) { console.log(one); console.log(two);
asked
Feb 26
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
What's the output? let number = 0; console.log(number++); console.log(++number); console.log(number);
asked
Feb 26
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
+1
vote
What's the output? function sum(a, b) { return a + b; } sum(1, '2');
asked
Feb 24
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
+1
vote
All object have prototypes. A: true B: false
asked
Feb 24
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
+1
vote
What are the three phases of event propagation?
asked
Feb 24
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
+1
vote
What's the output? function Person(firstName, lastName) { this.firstName = firstName; this.lastName = lastName; }
asked
Feb 24
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
+1
vote
What's the output? function Person(firstName, lastName) { this.firstName = firstName; this.lastName = lastName; }
asked
Feb 24
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
+1
vote
What happens when we do this? function bark() { console.log('Woof!'); } bark.animal = 'dog';
asked
Feb 24
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
+1
vote
What's the output? let greeting; greetign = {}; // Typo! console.log(greetign);
asked
Feb 24
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
+1
vote
What's the output? class Chameleon { static colorChange(newColor) { this.newColor = newColor;
asked
Feb 24
in
JavaScript
by
DavidAnderson
javascript-interview-qeustions-answers
+1
vote
What's the output? let a = 3; let b = new Number(3); let c = 3; console.log(a == b); console.log(a === b);
asked
Feb 24
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
+1
vote
What's the output? let c = { greeting: 'Hey!' }; let d; d = c; c.greeting = 'Hello'; console.log(d.greeting);
asked
Feb 24
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Which one is true? const bird = { size: 'small', }; const mouse = { name: 'Mickey', small: true, };
asked
Feb 24
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
What's the output? +true; !'Lydia'; A: 1 and false B: false and NaN C: false and false
asked
Feb 24
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
What's the output? for (var i = 0; i < 3; i++) { setTimeout(() => console.log(i), 1); } for (let i = 0; i < 3; i++)
asked
Feb 24
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
What's the output? function sayHi() { console.log(name); console.log(age); var name = 'Lydia'; let age = 21; }
asked
Feb 24
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
What is Web Workers API in javascript?
asked
Feb 20
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
How to Clone a Map or Set in JavaScript?
asked
Feb 20
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Explain about the JavaScript weakMap set() Method?
asked
Feb 20
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
What is use of reduce() method of Array in javascript?
asked
Feb 20
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Z-Index will not work with static postioning?
asked
Feb 20
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
What is The "use strict" Directive in javascript?
asked
Feb 20
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Explain about the Map in Javascript?
asked
Feb 20
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Maps keep the order of key insertion true/false
asked
Feb 20
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Play method on video is an asyn operations?
asked
Feb 20
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
What is Await Function in javscript?
asked
Feb 20
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
What is Async Function in Javascript?
asked
Feb 20
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
What is JavaScript Hoisting?
asked
Feb 20
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
what is the memory size of a weakmap object?
asked
Feb 20
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
Page:
« prev
1
2
3
4
5
6
7
8
9
...
40
next »
...