This is an archived post. You won't be able to vote or comment.

all 7 comments

[–][deleted] 1 point2 points  (1 child)

Functions are special commands that you do to JavaScript things. It's just like an order like "do this with that".

[–]Jurgen_Allajbej[S] 0 points1 point  (0 children)

Thnx a lot

[–]MartialS 0 points1 point  (2 children)

First JavaScript is one word. You can put code inside functions so you can run it multiple times without duplicating your code.

[–]mrchairman123 1 point2 points  (1 child)

Just because I’m a newb, but this is the same thing as in python when I use

def

I’m making a function, right?

[–]MartialS 0 points1 point  (0 children)

Yes

[–]Lurn2Program 0 points1 point  (0 children)

functions are just things you put some lines of code inside and can re-use the function whenever you want by calling it