What is arrow function , write its syntax?



What is arrow function , write its syntax?..

Answer / Sonu Kumar

An Arrow Function is a shorthand syntax for writing functions in JavaScript. It was introduced in ES6. The basic syntax is: (parameters) => {statements}. For example: (x, y) => x + y

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is rootscope in angular 2?

1 Answers  


Should I use angular?

1 Answers  


What are browser events?

1 Answers  


How do you exchange data among different modules of your angular js application?

1 Answers  


Explain about single and multithread in javascript?

1 Answers  


What is the meaning of ng in angular 2?

1 Answers  


Just-in-time (jit) compiles the app in the browser, at runtime, as the application loads – this is the standard development approach. Jit is useful for development, but its performance concerns me – how would jit scale for enterprise-level applications?

1 Answers  


What is the use of canactivate in angular?

1 Answers  


Explain the concept of lazy loading in angular 2

1 Answers  


What is the advantage of angular?

1 Answers  


Which js is best?

1 Answers  


What is the difference between component and directive?

1 Answers  


Categories