Teaching Newbies since 2014

kauress

  • Home
  • Javascript ❤
    • JavaScript
    • Node.js
  • WebDev Tuts
  • screencasts
  • Resources
  • VR & AR
  • Contact
  • Github
  • Twitter
  • YouTube
  • RSS
  • C++
You are here: Home / Javascript ❤ / JavaScript / 51-100 #javascript interview questions

April 5, 2020 by: Kauress

51-100 #javascript interview questions

#51 #javascript interview question: white space is retained in ES6 template literals? #100DaysOfCode #cultivatingcoders

— Kauress (@kauresss) February 12, 2020

#52 #javascript interview question:

<h2 id="para1"></h2>

localStorage.❓("guestName", "missLorem");
document.getElementById("para1").innerHTML = localStorage.❓("guestName")#100DaysOfCode #cultivatingcoders #womenwhocode

— Kauress (@kauresss) February 12, 2020

#53 #javascript interview question:
let mySymbol = Symbol(“kode”);
let mySymbol2 = Symbol(“kode”);

console.log(mySymbol === mySymbol2)//⭐️ #100DaysOfCode #cultivatingcoders #womenwhocode

— Kauress (@kauresss) February 13, 2020

#54 #javascript #callback interview question:
Complete this :

function simpleCallback(msg1,msg2, callback) {
console.log(msg1,msg2);
❓
}
simpleCallback("Hello","Code", function() {❓ }); #100DaysOfCode #cultivatingcoders #womenwhocode #codify

— Kauress (@kauresss) February 14, 2020

#55 #javascript interview question:

const yummies = ['Ice-cream','Cupcake','Donut','Cupcake'];
yummies.forEach(⭐️complete this part⭐️){
console.log(item + ' The index is ' + index +' The whole array is: ' + yummies);
});#100DaysOfCode #cultivatingcoders #womenwhocode #codify pic.twitter.com/NnqFyuQoTR

— Kauress (@kauresss) February 14, 2020

#56 #javascript forEach( ) warmup interview question:

Multiply every item in the array and log it's index , then push the result to newNums:

let nums = [1,2,3];
let newNums =[]
nums.forEach(function(num,index){
❓
}); #100DaysOfCode #cultivatingcoders #womenwhocode #codify

— Kauress (@kauresss) February 15, 2020

#57 #javascript interview question:
🐛 What is the function of the debugger keyword? #100DaysOfCode #cultivatingcoders #womenwhocode #codify

— Kauress (@kauresss) February 15, 2020

#58 #javascript interview question: What will “result” log to? How do you check for this type of property? let result = (13+13+"e"); #cultivatingcoders #codify #womenwhocode

— Kauress (@kauresss) February 16, 2020

#59 #javascript interview question:

🍓 Define/explain higher order functions#100DaysOfCode #cultivatingcoders #womenwhocode #webdev #codify #Jobs

— Kauress (@kauresss) February 16, 2020

#60 #javascript interview question: "Do you follow any JS devs on twitter, & read any blogs". An actual question that was asked by @sitepointdotcom "do you follow any CSS experts/devs, who is your favorite?" #100DaysOfCode #cultivatingcoders #womenwhocode #webdesign #codify

— Kauress (@kauresss) February 17, 2020

#61 #javascript interview question:

let x = () =>{};
let y= {};
console.log(typeof(x) !== typeof(y)); //❓🌠#100DaysOfCode #cultivatingcoders #womenwhocode #codify

— Kauress (@kauresss) February 17, 2020

#62 #javascript #interview question:

⭐️What ES9 method should you use to transform this into an obj?

const langs = [['#JavaScript, Web'], ['#Python, ML'], ['#C#, VR']];
const langsObj = Object.❓❓(langs);#100DaysOfCode #cultivatingcoders #womenwhocode #codify #webdevelopers

— Kauress (@kauresss) February 17, 2020

#63 #javascript interview question:
let nums = [1,[2],[3],[4,5];
console.log(nums.flat());//🦖
console.log(nums);//🦖 #100DaysOfCode #cultivatingcoders #womenwhocode #codify #webdev

— Kauress (@kauresss) February 18, 2020

#64 #javascript interview question: explain inheritance in JavaScript #100DaysOfCode #cultivatingcoders #womenwhocode #codify

— Kauress (@kauresss) February 19, 2020

#65 #javascript interview question: Complete the following to log the current weekday in string format (“monday” etc) let today = new Date(); let day = today.getDay(); #100DaysOfCode #cultivatingcoders #womenwhocode

— Kauress (@kauresss) February 19, 2020

#66 #javascript interview question: console.log(Math.pow(3,3));⭐️ #100DaysOfCode #cultivatingcoders #womenwhocode #codify #Webdesign

— Kauress (@kauresss) February 19, 2020

#67 #javascript interview question: ⭐️Besides console.log what other console methods are there of the console object?⭐️ #100DaysOfCode #cultivatingcoders #womenwhocode #codify #Webdesign

— Kauress (@kauresss) February 20, 2020
https://twitter.com/kauresss/status/1230494226590392321

#69 #javascript interview question: what’s the difference between: let elem1 =Array.of(10);
let elem2=Array(10); #100DaysOfCode #cultivatingcoders #womenwhocode #codify #Webdesign #learntocode

— Kauress (@kauresss) February 20, 2020

#70 #javascript interview question: Differentiate between deep and shallow copies #100DaysOfCode #cultivatingcoders #womenwhocode #codify #Webdesign

— Kauress (@kauresss) February 21, 2020

#71 #javascript interview question: How many comparison operators are there ? #100DaysOfCode #cultivatingcoders #womenwhocode #Web

— Kauress (@kauresss) February 21, 2020
https://twitter.com/kauresss/status/1230874279312535552
https://twitter.com/kauresss/status/1231658940192165889
https://twitter.com/kauresss/status/1231733218283544576

#75 #javascript interview question: Explain why console.log is false, knowing what you do about symbols in #ES6:
let b1 = Symbol("token");
let b2 = Symbol("token");
console.log(b1===b2);//false #100DaysOfCode #cultivatingcoders #womenwhocode #codify

— Kauress (@kauresss) February 27, 2020

#76 #javascript interview question: Explain the use cases of the Symbol primitive data type #100DaysOfCode #cultivatingcoders #womenwhocode #codifynigeria

— Kauress (@kauresss) February 27, 2020

#77 #javascript interview question: “fruitCopy” is a shallow copy:
let fruit= {
name: "🍎",
available: true
};
let fruitCopy = fruit; https://t.co/IHozNaKVwa = "🍋";
console.log(https://t.co/6lOEt0nkcK)//🍋 #100DaysOfCode #cultivatingcoders #womenwhocode #codify

— Kauress (@kauresss) February 27, 2020

#78 #javascript interview question: when you pass by value a new location in memory is created #100DaysOfCode #cultivatingcoders #WomenWhoCode #codify

— Kauress (@kauresss) February 27, 2020

#79 #javascript interview question: capitalize all the letters of the items in the array from the 2nd character on: let frenz = [ “Rocko”, “Nikki”, “Su”]; #100DaysOfCode #cultivatingcoders #womenwhocode #codifiy #learn

— Kauress (@kauresss) February 28, 2020

#80 #javascript interview question: what will console.log be (true or false)? console.log("0" !== 0);
console.log("" != 0);
console.log("" != "0"); #100DaysOfCode #cultivatingcoders #womenwhocode #learntocode

— Kauress (@kauresss) February 28, 2020

#81 #javascript interview question: Access the 2nd item of the 3rd elem in the 2D array AND print all Elems: let gameFoo = [
["Zelda", 1],
["Mario", 2],
["Ceasar", 3],
["Robotic", 4],
['WoW', 5]
];#100DaysOfCode #cultivatingcoders #WomenWhoCode #learning

— Kauress (@kauresss) February 29, 2020

#82 #javascript interview question: “var” is function scoped whereas “let” is block scoped #100DaysOfCode #cultivatingcoders #WomenWhoCode #webdev

— Kauress (@kauresss) March 11, 2020

#83 #javascript interview question: let setA = new Set();
setA.add(10).add(20).add(40).add(10); setA.delete(10);
console.log(setA.size);//⭐️ #100DaysOfCode #cultivatingcoders #WomenWhoCode #codify

— Kauress (@kauresss) March 11, 2020

#84 #javascript interview question:
💻What is the difference between sets & arrays?#100DaysOfCode #cultivatingcoders #womenwhocode #remoteworking

— Kauress (@kauresss) March 14, 2020

#85 #javascript interview question:
💻You can declare a variable with ‘let’ with the same name as long as the scope is different #100DaysOfCode #cultivatingcoders #womenwhocode

— Kauress (@kauresss) March 17, 2020

#86 #javascript interview question:
{
let🍎 = 🍎;
}
let🍎= 🍍;
console.log(🍎)//❓❓#100DaysOfCode #cultivatingcoders #womenwhocode #webdevelopment #learntocode #codify

— Kauress (@kauresss) March 18, 2020

#87#javascript interview question:
const num = 1;

function func1( ) {
console.log(`this is ${num}`)//❓❓
}

function func2( ) {
const num = 2;
func1( );
}
func2( );#100DaysOfCode #cultivatingcoders #womenwhocode #webdevelopment #learntocode #codify

— Kauress (@kauresss) March 18, 2020
https://twitter.com/kauresss/status/1240244706337894400

#89 #javascript interview question:

let a = 10;
let b = a;
a = 100;
console.log(b)//❓❓

🌟What is the answer and why?🌟#100DaysOfCode #cultivatingcoders #womenwhocode #webdev #codify #learntocode

— Kauress (@kauresss) March 19, 2020

#90 #javascript interview question:

What is console.logged & why?

for (let i = 0; i <= 10; i++) {
setTimeout(function(){
console.log(i); //❓❓
}, i * 1000 );
}#100DaysOfCode #cultivatingcoders #womenwhocode #codify #wfh

— Kauress (@kauresss) March 21, 2020

#91 #javascript interview question:

Can you re-assign a property value to a const object?

const user = {
name: "Kauress",
}https://t.co/xnwbfipcsS = "Rocko";

console.log(https://t.co/xnwbfipcsS)//❓🌟#100DaysOfCode #cultivatingcoders #womenwhocode #codify #wfh

— Kauress (@kauresss) March 21, 2020

#92 #javascript interview question:

let a = {
name: "fooBar"
};
b = a;https://t.co/CY87uUDUYw = "Intelligible name";
console.log(https://t.co/bc5xR2hH2v);//❓❓#100DaysOfCode #cultivatingcoders #womenwhocode #learntocode #codify

— Kauress (@kauresss) March 21, 2020

#93 #javascript interview question:

What is happening😑

let userName = new String("JS");
console.log(userName.length)//2🌟https://t.co/dHYmM9G5rx = "Kimchi";
console.log(typeof(https://t.co/dHYmM9G5rx));//object🌟#100DaysOfCode #cultivatingcoders #womenwhocode #learntocode

— Kauress (@kauresss) March 21, 2020
https://twitter.com/kauresss/status/1241366365996322816
https://twitter.com/kauresss/status/1241653693641936899

#96 #javascript interview function:

Convert int 10 into it's binary representation using the Number function and toString method#100DaysOfCode #cultivatingcoders #womenwhocode

— Kauress (@kauresss) March 23, 2020

#97 #javascript interview questions:

What will be returned from the logical && operator when both operands are objects?

let a ={
fruit: 🍋
}
let b ={
juice:🥭
}
console.log(a && b) // ❓#100DaysOfCode #cultivatingcoders #womenwhocode

— Kauress (@kauresss) March 23, 2020

#98 #javascript interview question:

let x = "null";
let y = "Bob";

🌟What is logged first and why?

function logThis(){
if(y === "Bob"&& !(x) ){
console.log("msg1");
} else{
console.log("msg2")
}
}
logThis();#100DaysOfCode #cultivatingcoders #womenwhocode

— Kauress (@kauresss) March 24, 2020

#99 #javascript interview question:

new Number (0); #100DaysOfCode #cultivatingcoders #womenwhocode #wfh #learning

— Kauress (@kauresss) March 25, 2020

#100 #javascript interview question:

Modify the fxn to log the msg (without changing the value of a):

let a = 0;

let b = () => {
if(🌟🌟🌟){
console.log("hello world")
}
}

b();#100DaysOfCode #cultivatingcoders #womenwhocode #learntocode

— Kauress (@kauresss) March 25, 2020
Writing a book with Packt
Learn Twitter Bootstrap in VR – update

Comments

  1. Cammy Hatchett says

    April 8, 2020 at 6:25 pm

    Bookmarked!, I love it!

    Reply
  2. Rebekah Poldrack says

    April 11, 2020 at 3:35 pm

    Bookmarked!, I really like it!

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Copyright © 2021 ·Kauress