Scripts 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 1000

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

1 1087

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 1486

Event handler Example

1 872

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

1 1210

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

1 1151

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

1 970

What is the difference between let, const, and var?

1 247

Explain the difference between == and === in JavaScript.

1 202

What is the difference between synchronous and asynchronous JavaScrip

1 246

What is the event loop in JavaScript?

1 249

What is a Promise in JavaScript?

1 233

What is this in JavaScript?

1 210

What is call(), apply(), and bind()?

1 220

What is new in Angular 8?

1 480


Un-Answered Questions { Scripts }

Explain module.exports in node js?

517


Explain about services in Angular.js ?

633


Who developed npm?

379


Is javascript safe to download?

645


List the differences between observables and promises in angular 2?

567


how do you declare variables in javascript?

698


What are the component life cycle methods in reactjs?

247


How do I use comments within a jsp page?

716


How to programmatically trigger a click event thats being handled by jquery only?

602


What are local variables in javascript?

667


Why we use ng app in angularjs?

585


Define a form collection?

759


Which one is better jsp or servlet?

688


How to redirect a page to another page in javascript?

718


How do you delete a file using node.js?

370