-
How can you add a class name to addBtn?(Do some research on it)
const addBtn = document.getElementById("add-btn");
- All of the above
- The value of total will be?
const sum = (p, q) => parseInt(p) + q; const total = sum("h", 1);
- NAN
- What is the output?
const marks= 60; const resubmit = -5; console.log(!(marks > 0 || resubmit > 0));
- False
- How will you find out the numbers of properties present in an object person?
const person = { name: "hero", id: 101, address: "BD", postalCode: 40321 };
- console.log(Object.keys(person).length);
-
What will be the output?
const animals = ['cat', 'dog', 'rat']; console.log(animals.includes('Cat'));
- False
- If you call the unique function and pass the array what will you get?
const unique = array => array.indexOf(“21”); const array = [2,3,4,5,2];
- -1
-
What will be the return of add(“2”,3)?
const add =(para1 , para2) => para2 + para1
- 32
- If you run the above code, which type of error will you get?
const b=6 b=6 console.log(b);
- Assignment Error
- What is a regular expression ?
- A sequesnce of characters that specifies a search pattern
- What would be the output?
const colors = {mango: 'green', grapes: 'black', organe: 'yellow'}; console.log(colors[grapes])
- Uncaught Referrer Error