Login
Remember
Register
Ask a Question
Recent questions in JavaScript
0
votes
1
answer
What's the output? console.log(3 + 4 + '5');
asked
Mar 7, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? const person = { name: 'Lydia', age: 21, }; for (const item in person) { console.log(item); }
asked
Mar 7, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? let person = { name: 'Lydia' }; const members = [person]; person = null; console.log(members);
asked
Mar 7, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What does this return ? const firstPromise = new Promise((res, rej) =>
asked
Mar 7, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? function* generator(i) { yield i; yield i * 2; } const gen = generator(10);
asked
Mar 7, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What does this return? [...'Lydia'];
asked
Mar 7, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What does the setInterval method return in the browser? setInterval(() => console.log('Hi'), 1000);
asked
Mar 7, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? !!null; !!''; !!1;
asked
Mar 7, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? [[0, 1], [2, 3]].reduce( (acc, cur) => { return acc.concat(cur); }, [1, 2], );
asked
Feb 27, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
Everything in JavaScript is either a...
asked
Feb 27, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? (() => { let x, y; try { throw new Error(); }
asked
Feb 27, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? const numbers = [1, 2, 3]; numbers[10] = 11; console.log(numbers);
asked
Feb 27, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? console.log(typeof typeof 1);
asked
Feb 27, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
Which of these values are falsy? 0; new Number(0); (''); (' '); new Boolean(false); undefined;
asked
Feb 27, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? function sayHi() { return (() => 0)(); } console.log(typeof sayHi());
asked
Feb 27, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? const person = { name: 'Lydia' }; function sayHi(age) { return `${this.name} is ${age}`; }
asked
Feb 27, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
When you click the paragraph, what's the logged output? <div onclick="console.log('div')">
asked
Feb 27, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What is the event.target when clicking the button? <div onclick="console.log('first div')">
asked
Feb 27, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? const foo = () => console.log('First'); const bar = () => setTimeout(() => console.log('Second'));
asked
Feb 27, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? const a = {}; const b = { key: 'b' }; const c = { key: 'c' }; a[b] = 123; a[c] = 456;
asked
Feb 27, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? String.prototype.giveLydiaPizza = () => { return 'Just give Lydia pizza already!'; };
asked
Feb 26, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? for (let i = 1; i < 5; i++) { if (i === 3) continue; console.log(i); }
asked
Feb 26, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
The JavaScript global execution context creates two things for you: the global object, and the "this" keyword.
asked
Feb 26, 2024
in
JavaScript
by
DavidAnderson
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
Page:
« prev
1
2
3
4
5
6
7
8
...
40
next »
Recent questions in JavaScript
...