JavaScript Interview Questions
Questions Answers Views Company eMail

How do you extend classes Code snippet: const circle = { radius: 20, diameter() { return this.radius * 2; }, perimeter: () => 2 * Math.PI * this.radius };

1 665

Can you write a random integers function to print integers with in a range?

1 717

What 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 869

Event handler Example

1 602

What will be the output of the code below? var Y = 1; if (function F(){}) { y += Typeof F; } console.log(y);

1 858

What will be the output of the following code? //nfe (named function expression) var Foo = Function Bar() { return 7; }; typeof Bar();

1 820

What is a “closure” in JavaScript? Provide an example

1 652


Post New JavaScript Questions

Un-Answered Questions { JavaScript }

What is null in programming?

523


What is argument objects in javascript & how to get the type of arguments passed to a function?

478


Write about the errors shown in javascript?

472


Are there any training Institutions on iphone Automation testing?

1787


What close() does in javascript?

496






Describe what u had done today?

1825


What is the disadvantage of using innerhtml in javascript?

658


What is use of JavaScript and jquery?

567


Define escape() function?

505


How to disable an html object ?

555


How do you access an element in an HTML document with JavaScript?

504


Can you assign an anonymous function to a variable?

497


When would you use javascript closures?

473


What are classes in javascript?

478


What is a class in javascript?

481