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
Q: What does this method do? JSON.parse();
asked
Mar 15
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What's the output? const food = ['', '', '', '']; const info = { favoriteFood: food[0] };
asked
Mar 15
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: Which of these methods modifies the original array? const emojis = ['✨', '', '']; emojis.map(x => x + '✨');
asked
Mar 15
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What's its value? console.log('❤️' === '❤️'); A: true B: false
asked
Mar 15
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What's its value? const colorConfig = { red: true, blue: false, green: true, black: true, yellow: false, };
asked
Mar 15
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What's its value? function compareMembers(person1, person2 = person) { if (person1 !== person2)
asked
Mar 15
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What's its value? Promise.resolve(5);
asked
Mar 15
in
JavaScript
by
DavidAnderson
javascript-interveiw-quesitons-answers
0
votes
Q: What's the value of output? const set = new Set(); set.add(1); set.add('Lydia'); s
asked
Mar 15
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answer
0
votes
Q: What's the value of output? const myPromise = () => Promise.resolve('I have resolved!'); function firstFunction()
asked
Mar 15
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What's the value of output? const one = false || {} || null; const two = null || false || '';
asked
Mar 15
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What's the value of output? const output = `${[] && 'Im'}possible! You should${'' && `n't`}
asked
Mar 13
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What's the output? const name = 'Lydia'; console.log(name()); A: SyntaxErr
asked
Mar 13
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What's the output? const getList = ([x, ...y]) => [x, y] const getUser = user => { name: user.name, age: user.age }
asked
Mar 13
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What's the output? const info = { [Symbol('a')]: 'b', };
asked
Mar 13
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What's the output? class Person { constructor() { this.name = 'Lydia'; } }
asked
Mar 13
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What's the output? function nums(a, b) { if (a > b) console.log('a is bigger'); else console.log('b is bigger');
asked
Mar 13
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What's the output? function getItems(fruitList, ...args, favoriteFruit)
asked
Mar 13
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What's the output? const person = { name: 'Lydia', age: 21, };
asked
Mar 13
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What's the output? function giveLydiaPizza() { return 'Here is pizza!'; }
asked
Mar 13
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What's the output? let newList = [1, 2, 3].push(4); console.log(newList.push(5));
asked
Mar 13
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What's the output? class Person { constructor(name) { this.name = name; } }
asked
Mar 12
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What's the output? // module.js export default () => 'Hello world'; export const name = 'Lydia';
asked
Mar 12
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answer
0
votes
Q: What's the output? function sum(num1, num2 = num1) { console.log(num1 + num2); } sum(10);
asked
Mar 12
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What's the output? console.log('I want pizza'[0]);
asked
Mar 12
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: Which option is a way to set hasName equal to true, provided you cannot pass true as an argument?
asked
Mar 12
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What kind of information would get logged? fetch('https://www.website.com/api/user/1') .
asked
Mar 12
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What is the output? function checkAge(age) { if (age < 18) { const message = "Sorry, you're too young."; }
asked
Mar 12
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What is the output? const person = { name: 'Lydia', age: 21, };
asked
Mar 12
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What is the output? var status = ''; setTimeout(() => { const status = '';
asked
Mar 11
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What is the output? function sayHi(name) { return `Hi there, ${name}`; }
asked
Mar 11
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
Page:
1
2
3
4
5
6
...
40
next »
...