Login
Remember
Register
User DavidAnderson
Wall
Recent activity
All questions
All answers
Ask a Question
Questions by DavidAnderson
0
votes
1
answer
What's the output? (() => { let x, y; try { throw new Error(); }
asked
Feb 27, 2024
in
JavaScript
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
javascript-interview-questions-answers
0
votes
1
answer
What's the output? console.log(typeof typeof 1);
asked
Feb 27, 2024
in
JavaScript
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
javascript-interview-questions-answers
+1
vote
1
answer
All object have prototypes. A: true B: false
asked
Feb 24, 2024
in
JavaScript
javascript-interview-questions-answers
+1
vote
1
answer
What are the three phases of event propagation?
asked
Feb 24, 2024
in
JavaScript
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
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
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
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
javascript-interview-questions-answers
Page:
« prev
1
...
35
36
37
38
39
40
41
42
43
44
45
...
123
next »
...