Hey everyone I hope you are all keeping well! 2021 has been ironically really productive due to some unfortunate circumstances.. So I have just a couple things to say to keep you guys all in the loop…
My job made a bunch of redundancies and unfortunately I was also one of the many to lose my job, so I took this as an opportunity to seek new directions, completely redo my CV in accordance with where I want to go now, into web development and software.
So I have applied to a bootcamp program recently which will take up my full time from March til May and will be fully focusing in on that, so here’s hoping! …
Hello all, hope you are all doing well, today we’re going to have a look at switch statements which are a completely new subject to me. Let’s dig in! And as always, thanks to FreeCodeCamp for the lessons.
—
A switch statement tests a value and can run many case statements, which define various outcomes, each separated by a break.
Remember: case values are tested with strict equality (===).
Note: The break tells JS that the code has come to an end and needs no more execution to take place, and moves JS onto the next case, if any given.
Take a look here at the example given by…
Hello everyone, hope you are all keeping well! Today we’re going to look at various Else Statements, so let’s get cracking! Cheers to FreeCodeCamp for the lessons.
—
In the event of executing an if statement which returns false, we can execute an alternate block of code instead. This is called an else statement. It’s like saying “do this (the if statement), otherwise, do this (the else statement)”.
Note: The else statement has it’s own curly brackets and is written directly after it’s preceding if statement.
In the case of writing multiple conditions, we can use else if statements to “chain” multiple if statements together. …
Hello everyone! Hope you are all keeping well. Today we’re going to be taking a focussed look at Comparisons in JavaScript, thanks as always to FreeCodeCamp for the lessons. Let’s get started.
—
The inequality operator ( written as !=) is the opposite to the equality operator and means to say something is “Not Equal”, returning as false, whereas the equality operator would state the opposite, and vice versa.
Like the equality operator, the inequality operator also carries out type conversion when making a comparison.
Hello everyone! Hope you all had a great new year, it’s been a while since I had my head in the JavaScript mindset, last time we left off at queues, so let’s pick up from there, starting with Booleans.. Thanks as always to FreeCodeCamp for the lessons.
—
So what are Booleans? They are data types which have only one of two possible values: true or false. Imagine them like little “switches” where True is “on” and False is “off”.
Note: The above quotes used are not included when writing true or false in JavaScript, as they are not Strings.
When you are writing code, the layout and execution is very logical. What works for what and how does this affect that. As a web developer you would need to think out the steps to execute an action and so on. …
Okay so here’s the thing, I’m a curious bloke when it comes to learning new things in coding and yesterday I found myself learning about XML (short for Extensible Markup Language), which, according to Wikipedia:
Extensible Markup Language is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable.
I was having a skim through my directories on my Mac and found a curious “Facebook” file which contained an XML file. I opened the file in Atom and found it to be readable data which contained my UUID (Unique User ID) and email for Facebook and so forth. …
Hello everyone! I’m currently away for Christmas, but I didn't want to leave you all out, so I brought my Mac with me to do a little more JavaScript with you all. Cheers to FreeCodeCamp for the lessons. Are you sitting comfortably with your thinking cogs switched on? Then let’s jump right back into it all..
—
Functions can include return statements but they don’t have to. By doing so, the code runs but returns as undefined.
As you can see here the function addSum has no return statement underneath so the global sum (outside the function’s parameters) will be changed but the returned value of the function is undefined. …
Hello folks, this one is a bit off topic - I have been practising all day (the first of many) how to touch type on a great site called TypingClub. I thought it might be useful to get this skill down as touch typing can greatly increase productivity and cut down on time (just a couple minutes a day can make all the difference). I am also touch typing right now! I’m currently at about 18 words per minute. It’s not much but practise makes perfect! So here are some tips I thought I’d pass along…
This comes as no surprise, but try your best not to look at the keyboard as you type. It will greatly help your muscle memory. Speaking of muscle memory, where exactly do we want to rest our fingers? …
Guys looooook! I was updating my Github Medium blog with all the current JavaScript blogs from here, and wanted to figure out how to make a better responsive navigation bar at the top, as mobile users would have to keep scrolling to the header in order to select new in-page chapters, so I dove in the deep end and thanks to w3schools I found links how to create a hamburger drop-down navigation bar!
I’m super chuffed cause not only did I get it working, I also added JavaScript to my code for the first time (put into script tags) AND managed to change the code to suit my desires for how it would look, positioning, colour etc.
Hello everyone! I just finished my night shifts for the week and looking forward to seeing what FreeCodeCamp has in store for us this time around. Looking at the lessons on JavaScript, were almost at the halfway mark. Let’s get back into it!
—
This reminds me a little bit of the CSS class declarations, which I use regularly when writing up HTML. The code in JS can be divided into reusable parts/chunks called functions. For example:
Here, we are effectively saying that when we call or invoke functionName(); , the code will print out all the “logged” code within the {} brackets, which is in this case: “Hello World”. …
About