A post on how javascript functions differ from Java functions.
Would help java developers trying their hands on javascript :
- You don’t specify the type of javascript parameters
- Javascript functions don’t need to live inside a Class
- Javascript functions can be assigned to a variable
- Javascript functions can be passed as parameters to other functions
- You can pass any number of parameters to a javascript function
Explanation with samples :
https://fullstackdeveloper.guru/2021/05/04/how-do-javascript-functions-differ-from-java-functions/
Top comments (2)
Hi there, we encourage authors to share their entire posts here on DEV, rather than mostly pointing to an external link. Doing so helps ensure that readers don’t have to jump around to too many different pages, and it helps focus the conversation right here in the comments section.
If you choose to do so, you also have the option to add a canonical URL directly to your post.
thanks Sloan , will keep that in mind next time