DEV Community

Vijay SRJ
Vijay SRJ

Posted on

Javascript functions vs Java functions

A post on how javascript functions differ from Java functions.
Would help java developers trying their hands on javascript :

  1. You don’t specify the type of javascript parameters
  2. Javascript functions don’t need to live inside a Class
  3. Javascript functions can be assigned to a variable
  4. Javascript functions can be passed as parameters to other functions
  5. 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)

Collapse
 
sloan profile image
Sloan the DEV Moderator

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.

Collapse
 
vijaysrj profile image
Vijay SRJ

thanks Sloan , will keep that in mind next time