Login
Remember
Register
Ask a Question
Recent questions tagged javascript-interview-questions-answers
0
votes
1
answer
What's the output? const obj = { a: 'one', b: 'two', a: 'three' }; console.log(obj);
asked
Feb 26, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? const obj = { 1: 'a', 2: 'b', 3: 'c' }; const set = new Set([1, 2, 3, 4, 5]);
asked
Feb 26, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? var num = 8; var num = 10; console.log(num);
asked
Feb 26, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
How long is cool_secret accessible? sessionStorage.setItem('cool_secret', 123);
asked
Feb 26, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the value of sum? const sum = eval('10*10+5'); A: 105 B: "105" C: TypeError D: "10*10+5"
asked
Feb 26, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? function getAge() { 'use strict'; age = 21; console.log(age); } getAge();
asked
Feb 26, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? function getAge(...args) { console.log(typeof args); } getAge(21);
asked
Feb 26, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? function checkAge(data) { if (data === { age: 18 }) { console.log('You are an adult!'); }
asked
Feb 26, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? function getPersonInfo(one, two, three) { console.log(one); console.log(two);
asked
Feb 26, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? let number = 0; console.log(number++); console.log(++number); console.log(number);
asked
Feb 26, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
+1
vote
1
answer
What's the output? function sum(a, b) { return a + b; } sum(1, '2');
asked
Feb 24, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
+1
vote
1
answer
All object have prototypes. A: true B: false
asked
Feb 24, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
+1
vote
1
answer
What are the three phases of event propagation?
asked
Feb 24, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
+1
vote
1
answer
What's the output? function Person(firstName, lastName) { this.firstName = firstName; this.lastName = lastName; }
asked
Feb 24, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
+1
vote
1
answer
What's the output? function Person(firstName, lastName) { this.firstName = firstName; this.lastName = lastName; }
asked
Feb 24, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
+1
vote
1
answer
What happens when we do this? function bark() { console.log('Woof!'); } bark.animal = 'dog';
asked
Feb 24, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
+1
vote
1
answer
What's the output? let greeting; greetign = {}; // Typo! console.log(greetign);
asked
Feb 24, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
+1
vote
1
answer
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, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
+1
vote
1
answer
What's the output? let c = { greeting: 'Hey!' }; let d; d = c; c.greeting = 'Hello'; console.log(d.greeting);
asked
Feb 24, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
Which one is true? const bird = { size: 'small', }; const mouse = { name: 'Mickey', small: true, };
asked
Feb 24, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
Page:
« prev
1
2
3
4
5
6
7
8
9
10
...
23
next »
...