Skip to content

Instantly share code, notes, and snippets.

@Hurly77
Created April 9, 2021 00:55
Show Gist options
  • Save Hurly77/1cb974919db898b9e7cb33a7485f9806 to your computer and use it in GitHub Desktop.
Save Hurly77/1cb974919db898b9e7cb33a7485f9806 to your computer and use it in GitHub Desktop.
//if we declare a variable
const myString = "My sting says Hello"// Here we are telling the browser "allocate memory for a string"
const num = 1000 //again were telling the heap to allocate memory for this variable that is an integer
// lets switch things up a bit, if i open an object literal like so:
const Cameron = {
firstName: 'cameron',
lastName: 'Leverett',
}
// This mean I want to allocate memory for an object and have it point the the follwoing keys wich point the the following values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment