First class Function in Javascript.

Learn about what is first class function and how to use itΒ , in Javascript.


A programming language is said to support First class functionΒ , if

  1. A function can be assigned to a variable,

2. A function can be passed as an argument,

3. A function can be returned from other function.

A function can be assigned to a variable


A function can be passed as an argument


A function can be returned from other function

A function which is returned from other function is called β€œHigher order function”.


Do you knowΒ ?

window.print() ; // this is open the print preview in browser

For writing ✍️ this post I πŸ€·πŸ»β€β™‚οΈ referred MDN 🌟 πŸ’– 😜 .

Learn new way of creating random numbers here

β€”β€Šβ€”β€Šβ€”β€Šβ€”β€Šβ€”β€Šβ€”β€Šβ€”β€Šβ€”β€Šβ€”β€Šβ€”β€Šβ€”β€Šβ€”β€Šβ€”β€Šβ€”β€Šβ€”β€Šβ€”β€Šβ€”β€Šβ€”β€Šβ€”β€Šβ€”β€Šβ€”

If you find this helpful surprise 🎁 me here.

Share if you feel happy πŸ˜ƒ πŸ˜† πŸ™‚Β .

Follow Javascript JeepπŸš™ if you feel worthy.

Leave a comment

Design a site like this with WordPress.com
Get started