Video 44-1 Six JavaScript Fundamentals that you need to know
Video 44-2 template string, arrow function, spread operator
Video 44-3 Array methods map filter find forEach
Video 44-4 Array and object Destructuring
Video 44-5 JSON, Fetch, keys, values, array add or remove using dots.
Video 44-6 (advanced) truthy, false Ternary operator, shortcut and or
Video 44-7 Explore Localstorage and session storage with JSON
Local Storage and Session Storage
Video 44-8 dot vs bracket notation
Video 44-9 Module summary
Video 44-10 (optional) React JS Installation troubleshooting
QUIZ
Q1: Which one is true about map and forEach when called on an empty array?
Ans: Map returns an array but forEach returns undefined
Q2: Which one is a falsy value here?
Ans: if(0)
Q3: const name = 'Hero';const age = 34;
const person = {name, age}; console.log(person);
What will be the output?(Try it out)
Ans: {name: 'Hero',age:34}
Q4: const person = { name : ”Babe” }
Which one is not the correct syntax for accessing the object property?
Ans: person(name)
Q5: const {name, country, age} = person;
What does the above code snippet indicate?
Ans: Destructuring of an object.
Q6: What is the value of ratName?
const adventurer = { name: 'Alice',cat: {name: 'Lucy'} };
const ratName = adventurer?.rat?.name;
Ans: undefined
Q7: Which method converts JSON strings to javascript objects?
Ans: JSON.parse()
Q8: let person =null;
console.log(person ? person : "person is null");
What will be the output of the above code?
Ans: person is null
Q9: lWhich one is not true for the filter (array method filter)?
Ans: Return undefined when no elements pass the test
Q10:
const obj = {a:1};
console.log(Object.keys(obj).length===0);
What will be the output?
Ans: false