>>17024167Functions are basically something you put something in and get something out.
It can be something simple as: input a number, the function adds 2 to it and then outputs it.
Basic print() or println() or console.log() are all functions, like little programs if you like, their function is to print the input on the screen for the use to see it. You put your thing between the ( ).... *lenny face*
console.log("op is a faggot");
Will print "op is a faggot" in your browser console because that is the purpose of that function.