Video 41-1 Module Introduction and Nosto Bank Console Errors
Video 41-1 41-2 Fix event handler and data return issue for Nosto Bank
Video 41-3 Fix Deposit data return issue for Nosto Bank
Video 41-4 Fix withdraw and Explore the debugging technique
Functional Baap-Er-Bank!!!
Deposit
$00
Withdraw
$00
Balance
$1240
Your Deposit
Your Withdraw
Video 41-5 Debug Ranga Store to fix the image multiple ways
Video 41-6 Fix Add to the Cart, Price rounding, product quantity
Video 41-7 Display Total, total precision and product count
Video 41-8 (advanced) Fix Modal Details, search by name and delivery fee
Video 41-9 Module Summary and home work
Total Products:
My-Cart
Total Added-Products:
0
Price:
$ 0
Delivery-Charge:
$ 20
Total-Tax:
$ 0
Total
$ 0
Modal title
Product id:
Rating
QUIZ
Q1: How can you add a class name to addBtn?(Do some research on it)
const addBtn = document.getElementById("add-btn");
Ans: All of the above
Q2: const sum = (p, q) => parseInt(p) + q;
const total = sum("h", 1);
The value of total will be?
Ans: NaN
Q3: What is the output?
const marks= 60;
const resubmit = -5;
console.log(!(marks > 0 || resubmit > 0));
Ans: false
Q4: const person = {
name: "hero",
id: 101,
address: "BD",
postalCode: 40321
};
How will you find out the numbers of properties present in an object person?
Ans: console.log(Object.keys(person).length);
Q5: const animals = ['cat', 'dog', 'rat'];
console.log(animals.includes('Cat'));
What will be the output?
Ans: false
Q6: const unique = array => array.indexOf(“21”);
const array = [2,3,4,5,2];
If you call the unique function and pass the array what will you get?
Ans: -1
Q7: const add =(para1 , para2) => para2 + para1
What will be the return of add(“2”,3)?
Ans: 32
Q8: const b=6
b=6
console.log(b);
If you run the above code, which type of error will you get?
Ans: assignment error
Q9: What is a regular expression ?
Ans: a sequence of characters that specifies a search pattern.
Q10: What would be the output?
const colors = {mango: 'green', grapes: 'black', organe: 'yellow'};
console.log(colors[grapes])
Ans: Uncaught Reference error