Assalamualaikum!

I am Nizam

Student of Batch-7

Module-35 Practice

Video 35-1 Load data using Phone Hunter API

Video 35-2 Display phones and implement search functionality

Video 35-3 Toggle no phone found message based on search result

Video 35-4 Show and hide loading spinner while loading API data

Video 35-5 Implement Show All button to display all data

Video 35-6 Dynamic API Data Load and search on keyboard enter button

Video 35-7 Show Phone Details data on a Modal

Video 35-8 Common API related mistakes and asynchronous Javascript

Video 35-9 Module Summary and recap

Welcome to My Phone Hunter

No Phone Found. Please try a new search

Loading...

QUIZ

Q1: Objects can contain objects as property values. True or false?
Ans: true

Q2: how we can get 2nd element from person array using Slice()? const person = [ { name: "rahim", age: 22, friends: ["rahim,karim,jabbar"], }, { name: "rahim2", age: 22, friends: ["rahim,karim,jabbar"], }, { name: "rahim3", age: 22, friends: ["rahim,karim,jabbar"], }, ];
Ans: person.slice(1,2)

Q3: Why we use fetch()?
Ans: Call the API and get the data

Q4: why we use res.json()?
Ans: Convert to json

Q5: how to get sokina instagram from dreamGirl? const dreamGirl = [ { sokina: { name: "bbu", height: "5.4", family: [{ father: "rock", mother: "shila", sister: "chinki" }], age: undefined, contactInfo: [ { facebook: { link: "https://www.facebook.com/", followers: "12545", status: "single", friendsList: [{ name: "rofik" }, undefined], }, }, { instagram: "https://www.instagram.com/" }, ], }, }, ];
Ans: dreamGirl[0].sokina.contactinfo[1].instagram

Q6: Among the following, Which one is a ternary operator ?
Ans: ?

Q7: Do functions in JavaScript necessarily return a value ?
Ans: few function return values by dafault.

Q8: is javascript single threaded language ?
Ans: JavaScript is a single-threaded language

Q9: is javascript single threaded language ?
Ans: JavaScript is a single-threaded language

Q10: can you get the phone which price not 500 ? which one is correct? const phones = [ { name: "sony", price: 500 }, { name: "apple", price: 700 }, { name: "sony", price: 700 }, ];
Ans: phones.filter(phone) => phone.price!=500)

THE END