JavaScript Syntax Death Match Part I – Variables, If/Else, Switch & Functions

I just went through a JS exercise and even though I did pretty well in terms of getting the logic right, I always have a hard time with the syntax, especially once you start combining things. Console.logging the result of calling a function without passing parameters? Where the hell do I put brackets? Using an … Continue reading JavaScript Syntax Death Match Part I – Variables, If/Else, Switch & Functions →

How JavaScript Functions work for Dummies like me

What are functions and why do we need them anyways? Functions are used to tell the machine to do a certain action, or sequence of actions. When you call the function in the code, it'll do what you told it to do in the function. Think of the function like training a dog to do … Continue reading How JavaScript Functions work for Dummies like me →