Skip to content

Instantly share code, notes, and snippets.

@baileydunning
Last active July 16, 2020 20:26
Show Gist options
  • Save baileydunning/4f912cbe70cdcdbf09c01915aab15474 to your computer and use it in GitHub Desktop.
Save baileydunning/4f912cbe70cdcdbf09c01915aab15474 to your computer and use it in GitHub Desktop.

Beginners Guide to Data Types

Strings

Text, using ""; for example:

  1. "My name is Bailey"
  2. "I live in Denver, CO."

Integers & Floats

Integers int are numbers.

  • 103
  • 18
  • 6

Floats are numbers with decimal points.

  • 1.5
  • 5.875
  • -9.1

Booleans

True or False

Comparison Boolean Value
4 > 2 True
11 == 3 False

Arrays

Arrays are a list/collection of variables var that are related to one another.

var = pop ["Coca Cola", "Mountain Dew", "Sprite", "Pepsi", "Dr. Pepper"];
console.log(pop);

alt text

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment