Latest from the Blog

Return vs console.log

This may be an incredibly esoteric post, but it may help one reader out there understand something that confused me for an embarrassingly long time. There is an important difference between these two ways of printing an output; the return statement and the console.log method. The defining difference being that once return has been enacted,Continue reading “Return vs console.log”

Nested if statements

Following on from my last post about nested for loops, this post will look a concept that follows a similar vein – nested if statements. I personally find it helpful to conceptualise nested if statements as a tiered filtering system. The input must pass the first criterion, the first filter, before the code can beContinue reading “Nested if statements”

Get new content delivered directly to your inbox.

Create your website at WordPress.com
Get started