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
- Host: GitHub
- URL: https://github.com/iftekheraziz/debugging-advanced-calculator
- Owner: IftekherAziz
- Created: 2023-03-08T01:35:20.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-28T11:15:47.000Z (about 3 years ago)
- Last Synced: 2025-10-12T22:43:44.117Z (8 months ago)
- Topics: chrome-devtools, debugging, debugging-tool, html5, javascript, modern-javascript
- Language: HTML
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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