Login
Remember
Register
Ask a Question
Recent questions tagged javascript-interview-questions-answers
0
votes
1
answer
With which constructor can we successfully extend the Dog class? class Dog { constructor(name)
asked
Mar 10, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? [1, 2, 3, 4].reduce((x, y) => console.log(x, y));
asked
Mar 10, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
const value = { number: 10 }; const multiply = (x = { ...value }) => { console.log((x.number *= 2)); };
asked
Mar 10, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? let num = 10; const increaseNumber = () => num++; const increasePassedNumber = number => number++;
asked
Mar 10, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? const settings = { username: 'lydiahallie', level: 19, health: 90, };
asked
Mar 10, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? const person = { name: 'Lydia' }; Object.defineProperty(person, 'age', { value: 21 });
asked
Mar 9, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? const user = { name: 'Lydia', age: 21 }; const admin = { admin: true, ...user }; console.log(admin);
asked
Mar 9, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? const numbers = [1, 2, 3, 4, 5]; const [y] = numbers; console.log(y);
asked
Mar 9, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? const name = 'Lydia'; age = 21; console.log(delete name); console.log(delete age);
asked
Mar 9, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? // counter.js let counter = 10; export default counter; // index.js import myCounter
asked
Mar 9, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? const set = new Set([1, 1, 2, 3, 4]); console.log(set
asked
Mar 9, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? class Dog { constructor(name) { this.name = name; } }
asked
Mar 9, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? (() => { let x = (y = 10); })();
asked
Mar 9, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? function Car() { this.make = 'Lamborghini'; return { make: 'Maserati' }; }
asked
Mar 9, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
function getInfo(member, year) { member.name = 'Lydia'; year = '1998'; }
asked
Mar 9, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the output? [1, 2, 3].map(num => { if (typeof num === 'number') return; return num * 2; });
asked
Mar 7, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
1
answer
What's the value of num? const num = parseInt('7*6', 10);
asked
Mar 7, 2024
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
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
Page:
« prev
1
2
3
4
5
6
7
8
...
23
next »
...