An open API service indexing awesome lists of open source software.

https://github.com/iftekheraziz/debugging-advanced-calculator

Debugging Advanced Calculator
https://github.com/iftekheraziz/debugging-advanced-calculator

chrome-devtools debugging debugging-tool html5 javascript modern-javascript

Last synced: 8 months ago
JSON representation

Debugging Advanced Calculator

Awesome Lists containing this project

README

          

#

1. How can you add a class name to addBtn?(Do some research on it)

const addBtn = document.getElementById("add-btn");

- All of the above

2. The value of total will be?

const sum = (p, q) => parseInt(p) + q;
const total = sum("h", 1);

- NAN

3. What is the output?

const marks= 60;
const resubmit = -5;
console.log(!(marks > 0 || resubmit > 0));

- False

4. 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);

5. What will be the output?

const animals = ['cat', 'dog', 'rat'];
console.log(animals.includes('Cat'));

- False

6. 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

7. What will be the return of add(“2”,3)?

const add =(para1 , para2) => para2 + para1

- 32

8. If you run the above code, which type of error will you get?

` const b=6
b=6
console.log(b);`

- Assignment Error

9. What is a regular expression ?

- A sequesnce of characters that specifies a search pattern

10. What would be the output?

const colors = {mango: 'green', grapes: 'black', organe: 'yellow'};
console.log(colors[grapes])

- Uncaught Referrer Error