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 650

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

1 712

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 854

Event handler Example

1 595

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

1 853

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

1 812

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

1 641


Un-Answered Questions { Scripts }

Differentiate between real dom and virtual dom?

146


What is the use of @viewchild?

398


What is the use of method – “spawn()”?

244


How are observers and callbacks different from each other?

412


How to handle mobile browsers/devices events in AngularJS?

1235






Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.

1703


What are the scopes available in ?

511


Why is it necessary to capitalize component names?

170


What is the difference between constructor and ngonlnit in angular js?

440


How to use newtonsoft or json.net for serializing json data?

1


What is the difference between React Component and React Element?

192


What are the expressions in angularjs?

423


How do you get the attribute of an html tag in jquery?

426


How long does it take to learn javascript?

486


What is session setattribute?

483