paint-brush
Seeing Javascript Objects as Functions Changed How I Codeby@anirudh-eka
747 reads
747 reads

Seeing Javascript Objects as Functions Changed How I Code

by Anirudh Eka8mDecember 15th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

A function is originally the idealization of how a varying quantity depends on another quantity. For example, given an input (time) you can determine an output (position of the planet) Let’s look at a simple function:. The only visible difference is we replaced the function with an object that will have the same behavior as a function. The object implementation can produce the squared value for any number input, while the object implementation will produce a function that can take in the same input and produce different outputs.

Coin Mentioned

Mention Thumbnail
featured image - Seeing Javascript Objects as Functions Changed How I Code
Anirudh Eka HackerNoon profile picture
Anirudh Eka

Anirudh Eka

@anirudh-eka

Passionate about finding patterns in computers, society and minds.

Learn More
LEARN MORE ABOUT @ANIRUDH-EKA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Anirudh Eka HackerNoon profile picture
Anirudh Eka@anirudh-eka
Passionate about finding patterns in computers, society and minds.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Tefter
Tefter
Pipfeed