How do you extend classes Code snippet: const circle = { radius: 20, diameter() { return this.radius * 2; }, perimeter: () => 2 * Math.PI * this.radius };
1 1014What is the output of below code var car = new Vehicle("Honda", "white", "2010", "UK"); console.log(car); function Vehicle(model, color, year, country) { this.model = model; this.color = color; this.year = year; this.country = country; }
1 1506What will be the output of the code below? var Y = 1; if (function F(){}) { y += Typeof F; } console.log(y);
1 1237What will be the output of the following code? //nfe (named function expression) var Foo = Function Bar() { return 7; }; typeof Bar();
1 1166
What is scope chain in javascript?
What is local and global scope?
Name the numeric constants representing max, min values?
Can webassembly replace javascript?
Explain how can you submit a form using JavaScript?
What will happen if an infinite while loop is run in Javascript?
Explain the term closure?
How to access the value of a textbox using javascript?
What is npm repository?
Name the different types of pop up boxes in Javascript?
How to determine the state of a checkbox using javascript?
When would you use javascript closures?
Which is better python or javascript?
Who introduced javascript?
What is a named function in JavaScript? How to define a named function?