DEV Community

CalebMcCoy04
CalebMcCoy04

Posted on

Functions

Hello, today I just want to chat about functions and how useful they are. Functions are tool that we can use that make our code more dynamic and are like the a swiss army knife of coding. Functions are fun to set up and reusing them is satisfying especially when you can just slot them in and everything flows. Functions are very good tool to learn and understand. Here is the function syntax to get you started:
function someFunction(parameter){ return something }
Function even have their own scope and you can write code that only deploys when that function is invoked. This tool can save you a ton of time when coding if you know that you will be reusing that code. have to pull something from the DOM write a function for that process! Functions also return something so there is an input and an output. Over all just want to gush about functions for a bit since they are so neat and handy!

Top comments (0)