How do you extend classes
Code snippet:
const circle = {
radius: 20,
diameter() {
return this.radius * 2;
},
perimeter: () => 2 * Math.PI * this.radius
};
What are the data types supported by javascript?
Write a javascript program to make a simple calculator
What is the difference between remove() and removeChild()?
What is a name function in javascript & how to define it?
How to encode and decode a url in javascript?
Can you put javascript in html?
What is null variable?
What are the five data types?
What boolean operators does JavaScript support?
5 Answers Aptech, HCL, Satyam,
How to go next field without filling the text? Which function should we use?
Explain the working of timers in JavaScript? Also elucidate the drawbacks of using the timer, if any?
How to add/remove properties to object dynamically in javascript?