
#1. const myString = 'Hello 2020';
— Kauress (@kauresss) January 11, 2020
myString = 'Hello World!';
console.log(myString)//"Hello World!"
what block scope keyword when changed produces the above console.log output? #javascript #100DaysOfCode #webdev #javascript30 #codenewbies #Coding
#2. let students = 0;
— Kauress (@kauresss) January 11, 2020
let classroom = false;
if(students > 10) {
let classroom = true;
}
console.log(classroom);
What is console-.log'd? (false or true) #javascript #webdev #100DaysOfCode
#3 let num1 = [1,2,3,4];
— Kauress (@kauresss) January 12, 2020
let num2 = [10,20,30,1];
let num3 = [100,200,300,1];
Find the common elements in all 3 arrays #javascript #100DaysOfCode #Coding #CodeNewbie #webdev #webdevelopment
#4. function checkout(price,___){
— Kauress (@kauresss) January 13, 2020
if(price > 100){
___( ____ );
}
}
function _____( ____){
let discount = ____ – (.10 *_____);
console.log("the total is" + discount)
}
checkout(110,cb);#javascript #100daysofcode #webdev #webdevelopment #code #CodeNewbie
#5. const yummies = ['Ice-cream','Cupcake','Donut','Cupcake'];
— Kauress (@kauresss) January 14, 2020
Using filter( ), return the unique elements from "yummies"#javascript #code #webdevelopment #CodeNewbie
#6. Code a function that returns a promise #javascript #100DaysOfCode #web #webdevelopment #code
— Kauress (@kauresss) January 16, 2020
Question #7: const composers = [{
— Kauress (@kauresss) January 18, 2020
Name: 'Beethoven',
Genre: 'Classical',
Rating: '9'
},
{
Name: 'Mozart',
Genre: 'Classical',
Rating: '10'
}]
Use map () to create a new array of objects with the rating & last name #javascript #100DaysOfCode #CodeNewbie
#8 #javascript:
— Kauress (@kauresss) January 18, 2020
let c = 0;
let d = false;
console.log(c !== d);#100DaysOfCode #code #webdev #webdevelopment #CodeNewbie
#9 #JavaScript quiz:
— Kauress (@kauresss) January 18, 2020
let catPowers ={
snarky: true,
napzinger: "Zzzzz",
gobbler: function(){
if(this.snarky === true)
return this.snarky;
}
}
return only the values of the catPowers object without using for-in #code #webdev #webdevelopment #CodeNewbie
#10 #javascript practice question:
— Kauress (@kauresss) January 19, 2020
let numArray1 =[1,2,3];
let numArray2= numArray1;
numArray2.push(4);
Take a guess what will console.log(numArray1) be?#code #CodeNewbie #100DaysOfCode #cultivatingcoders #LearnToCode
#11 #javascript question: What #ES6 method will you use to create a shallow-copied array of characters from this string referenced by let myString?
— Kauress (@kauresss) January 19, 2020
let myString = ? ("supercalifragilisticexpialidocious");#code #CodeNewbie #webdev #cultivatingcoders #LearnToCode #100DaysOfCode
#12 #javascript question:
— Kauress (@kauresss) January 20, 2020
let obj1 = { a: 10, b:20, c:30 };
let obj2 = { d: 40, e:50, f:60};
let obj3 = { g: 70, h:80, i:90 };
let obj;
Assign all properties from obj1,obj2, obj3 to obj#cultivatingcoders #LearnToCode #code #CodeNewbie #webdevelopment
#13 #javascript ques:
— Kauress (@kauresss) January 20, 2020
let devFood = [ "Foo Bar", "Barzinga","Loodles"]
console.log(devFood)//["Foo Bar", "Foo Bar", "Barzinga"]
Use an #ES6 method to copy array elements to match the console.log
#100DaysOfCode #cultivatingcoders #CodeNewbie #LearnToCode #webdev
#16 #javascript interview question: what is the difference between the pass by value and pass by reference with examples #cultivatingcoders #100DaysOfCode #Coding #CodeNewbie #webdev #CodifyNigeria
— Kauress (@kauresss) January 26, 2020
#17 #javascript interview question: “innerHTML” can increase the possibility of a XSS attack. What is an alternative for setting text? #100DaysOfCode #cultivatingcoders #CodifyNigeria #webdev #CodeNewbie
— Kauress (@kauresss) January 26, 2020
#19 #javascript interview question:
— Kauress (@kauresss) January 28, 2020
for (var i = 0; i < 10; i++) {
setTimeout(function(){
console.log(i); //what is logged here?
}, i * 1000 );
}#100DaysOfCode #cultivatingcoders #CodeNewbie #CodifyNigeria #code #webdevelopment #LearnToCode #WomenWhoCode
#20 #javascript interview question
— Kauress (@kauresss) January 29, 2020
let num = 10;
function sum( ) {
let num = 100;
document.getElementById('myP').innerHTML =(num+num); // 20 or 200?
}
sum( ); #100DaysOfCode #cultivatingcoders #CodeNewbie
#CodifyNigeria #WomenWhoCode #webdev
#21 #javascript interview question:
— Kauress (@kauresss) January 30, 2020
console.log(false != '0')
console.log(false !== '0')#100DaysOfCode #cultivatingcoders #CodeNewbie #WomenWhoCode #webdev #code #CodifyNigeria
#22 #javascript interview question:
— Kauress (@kauresss) January 30, 2020
let x = null;
Knowing that typeof(x) will return “object”. How do you check for a null value?#100DaysOfCode #cultivatingcoders #womenwhocode #Developer #CodeNewbie #CodifyNigeria
#23 #javascript interview question:
— Kauress (@kauresss) January 31, 2020
let langs = ["JavaScript","C#","Rust","C++","Python"];
delete langs[3];
console.log(langs.length);//⭐️
console.log(langs[3]); //⭐️#100DaysOfCode #cultivatingcoders #webdevelopment #LearnToCode #CodifyNigeria #WomenWhoCode
#24 #javascript interview question:
— Kauress (@kauresss) January 31, 2020
let arre= ["","A",9,"C++",false];
Empty the above array #100DaysOfCode #cultivatingcoders #womenwhocode #CodeNewbie
#26 #javascript interview question:
— Kauress (@kauresss) February 1, 2020
console.log(null == undefined) // T or F?
console.log(null === undefined)// T or F?
console.log(typeof(null) === 'object')// T or F?#100DaysOfCode #cultivatingcoders #womenwhocode #codenewbies #webdev
#27 #javascript warm-up data structure interview question:
— Kauress (@kauresss) February 1, 2020
Using in-built methods, implement a stack in #JavaScript and remove the last 2 elements#100DaysOfCode #cultivatingcoders #womenwhocode #CodifyNigeria #code
#29 #javascript interview question:
— Kauress (@kauresss) February 3, 2020
let person1 = {
name: "Rocko"
};
let person2 = {
name: "Rover"
};
Object.freeze(person1);https://t.co/elinnYObPl = "Lara";
person2 = person1;
console.log(person1);
console.log(person2);#100DaysOfCode #cultivatingcoders #WomenWhoCode
#32 #javascript interview question:
— Kauress (@kauresss) February 5, 2020
What is a closure? Give an example#100DaysOfCode #cultivatingcoders #WomenWhoCode #CodeNewbie #CodifyNigeria
#LearnToCode #javascript interview question:
— Kauress (@kauresss) February 5, 2020
let x = y = 7;
y= 10;
console.log(x);
console.log(y); #100DaysOfCode #cultivatingcoders #WomenWhoCode #codifynigeria
#37 #javascript recursion interview question:
— Kauress (@kauresss) February 7, 2020
Write a function to console.log the sum of all the elements in an array using recursion#100DaysOfCode #cultivatingcoders #womenwhocode #codifynigeria #webdev #learning
#35 #javascript question: console.log(105 < 232 < 350);
— Kauress (@kauresss) February 8, 2020
console.log(450 > 333 > 120); #100DaysOfCode #cultivatingcoders #womenwhocode #codifynigeria
#36 #javascript interview question, replicate without 'class':
— Kauress (@kauresss) February 9, 2020
class coder{
constructor(name){
https://t.co/HVhYa5v45S=name;
}
detail(){
return(https://t.co/HVhYa5v45S);
}
} #100daysOfCode #cultivatingcoders #womenwhocode #codifynigeria
#41 #javascript interview ques: Re-write this fxn without using an immediately invoked function (with the same functionality):
— Kauress (@kauresss) February 10, 2020
(function IIFE(){
console.log( 'hello world!' );
})();#100DaysOfCode #cultivatingcoders #womenwhocode #codifynigeria #Coding #webdeveloper
#43 #javascript interview question (hint:https://t.co/6UZfja0NpE) :
— Kauress (@kauresss) February 11, 2020
⭐️console.log(0.1 + 0.2); #100DaysOfCode #cultivatingcoders #womenwhocode #codifynigeria
#44 #javascript fun interview question:
— Kauress (@kauresss) February 11, 2020
Write a fxn to reverse a string#100DaysOfCode #cultivatingcode #womenwhocode #learn #codifynigeria
#46 #javascript interview question:
— Kauress (@kauresss) February 12, 2020
⭐️ Duplicate the elements of an array⭐️
function duplicateArr(myArr) {
return(❓);
}
duplicateArr(["a", "b", "c"]); //["a", "b", "c", "a", "b", "c"]#100DaysOfCode #cultivatingcoders #womenwhocode #codifynigeria
#47 #javascript interview question:
— Kauress (@kauresss) February 12, 2020
Complete the following fxn:
function funFxn() {
let secret = "this is a secret";
❓❓❓❓❓
}
let getSecret = funFxn(); // "this is a secret"#100DaysOfCode #cultivatingcoders #womenwhocode #codifynigeria #CodeNewbie
#49 #javascript classic interview questions:
— Kauress (@kauresss) February 12, 2020
Define:
1. Event Loop
2. Callback fxn
3. Stack
4. Task queue
5. Higher Order Fxn
6. Var, Const, Let
7. Lexical Scope
8. Closure
9. Anonymous Fxn
10. Event bubbling#100DaysOfCode #cultivatingcoders #womenwhocode #codifynigeria