Day 11: Intro To JavaScript

What Is JavaScript?

JavaScript is one of the most widely used programming languages today. It is the language of the browser and with Node, we can also write Javascript on the server. JavaScript allows us to make our websites interactive, giving us the final piece we need to make useful web applications.

Yay for JS!

Primitive Data Types

JavaScript has multiple data types we can use to store different types of information. The basic data types in JavaScript are Number, String, Boolean, Null and Undefined. Strings represent textual data, like a string of characters, and are wrapped in “quotes”. Booleans are either true or false and are used to make decisions based on conditions. Null is a placeholder that means there is no value, and undefined is a variable that has not been assigned a value.

Some primitive data types.

Operators

Operators allow us to perform operations on values. If we want to do some math, we can use the arithmetic operators for add, subtract, multiple, and divide. When we are trying to use logic in our code we can use the logical(boolean) operators NOT, AND OR. Logical operators will always evaluate to a boolean. Finally, we have comparison operators which we can use to compare two values, we can compare if something is equal to something else or if it is greater or less than something else.

Some Javascript Operators.

Closing

Today we got introduced to JavaScript, learning the basics and fundamentals is key to building more skills! I will be looking forward to implementing JavaScript into projects ✌️.

--

--

--

Web Developer Studying at BrainStation 🧑🏽‍💻, documenting all the cool things I learn 📚, anime inspiration too 🦸🏽‍♂️🦹🏽‍♂️.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Why we decided to move to Next.js

Pair Programming — What’s the Moral of the Story?

Breaking Down Stack Navigation In React Native

Communicate between independent components in Reactjs

35 CSS Javascript Loader Effects For Websites

Using AWS S3 as a simple cache service

23 Neumorphism Design UI For Website

Top 40 Free Programming Courses for Beginners

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Brent Carey

Brent Carey

Web Developer Studying at BrainStation 🧑🏽‍💻, documenting all the cool things I learn 📚, anime inspiration too 🦸🏽‍♂️🦹🏽‍♂️.

More from Medium

JavaScript — Beginner’s Guide

Things you need to know about JavaScript Callback Functions

The Javascript Project

Hoisting in JavaScript A-Z