#100DaysOfCode D???

devadvocatemyles

Paidamoyo-Janet aka β€œMyles”

Posted on December 21, 2019

#100DaysOfCode D???

Hi! My name is Paidamoyo-Janet Azehko aka Myles. I'm a newbie web dev on my journey through 100 Days of Code, and this is my third or fourth attempt. I'm not even sure what day that would make this. But the best thing about learning to code is that you never stop trying, so I'm using this as a way to document my journey a little more in depth in hopes that I can keep up and learn something along the way. I hope you'll join me.

A little about me, I started learning to code through Jessica Livingston's Summer Hacker's Program. (https://foundersatwork.posthaven.com/why-i-started-the-summer-hackers-program). Now that the program is done, I'm still continuing on my journey to learn to code. I didn't get far in the program, I learned some HTML, some CSS and got to JavaScript which is where my brain couldn't keep up, so today that's where I'll start.

JavaScript, its not the name of the font that your barista writes your name on your morning cup of coffee in, it is a robust and amazing programming language that the internet is built on and it's the foundations of the coding language React. Everything in JavaScript is an object because it is an object oriented programming language.

Let's start with Variables. Variables are defined by using the var keyword. Variables can different types like numbers, strings or booleans. Number variables can be either integers (whole numbers without a decimal point) and floating numbers (numbers with a decimal point). Variables can also be a boolean, which is either true or false.

Variables can be either undefined or null. An undefined variable is a variable that is a variable that has been used without declaring it first:

var newVariable;
console.log(newVariable);
Enter fullscreen mode Exit fullscreen mode

A null variable is a variable that is empty meaning that it hasn't been given any value on purpose.

var emptyVariable = null;
console.log(emptyVariable);
Enter fullscreen mode Exit fullscreen mode

This variable will print null.

Alright, that's all for today on my who knows what day this is of #100DaysOfCode.

πŸ’– πŸ’ͺ πŸ™… 🚩
devadvocatemyles
Paidamoyo-Janet aka β€œMyles”

Posted on December 21, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related