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 670

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

1 730

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 883

Event handler Example

1 604

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

1 869

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

1 828

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

1 662


Un-Answered Questions { Scripts }

How can I declare methods within my jsp page?

523


What is middleware in node.js?

270


What are observables in angular?

392


How to do animation with the help of AngularJS?

993


What is the use of string function sub(regex,replacement,string)?

949






Mention some angularjs directives and their purpose?

442


Explain uppercase filterangularjs?

469


How is the model view controller framework used in ruby on rails?

475


How do you resolve unhandled exceptions in a Node.js program?

246


What are the attributes can be used during creation of a new angularjs directives?

470


What classes should I add to module's declarations?

436


How to get the server response from an ajax request using jquery?

475


What is the difference between Node.js vs Ajax?

283


Is javascript enabled on my computer?

464


What is authguard?

420