Skip to content

Instantly share code, notes, and snippets.

@timkeresey
Created May 5, 2020 22:26
Show Gist options
  • Save timkeresey/a24ee0b0870ff9f5c0a16e6246070c3c to your computer and use it in GitHub Desktop.
Save timkeresey/a24ee0b0870ff9f5c0a16e6246070c3c to your computer and use it in GitHub Desktop.

Data Types

Numerical Data Types

  1. Interger
    • Intergers are any whole number.
    • Aren't surrounded by quotes.
    • var cars = 2
  2. Floats
    • Floats are numbers with decimal places.
    • Aren't surrounded by quotes.

String

Strings are data represented by text. Strings are surrounded by quotes.

var name = 'Tim'

Boolean

Boolean data is data that represents a value of true or false. Booleans aren't surrounded by quotes. alt text

Array

An array is a collection or list. Arrays are surrounded by brackets.

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