Skip to content

Instantly share code, notes, and snippets.

@mildocjr
Last active August 10, 2018 02:42
Show Gist options
  • Select an option

  • Save mildocjr/f681d9989192f1378004b0d896a3800a to your computer and use it in GitHub Desktop.

Select an option

Save mildocjr/f681d9989192f1378004b0d896a3800a to your computer and use it in GitHub Desktop.
mathmatics-1
var firstNumber = 1
let secondNumber = 2
firstNumber += secondNumber
// first number is now equal to 3
firstNumber *= secondNumber
// first number is now equal to 6 becuase firstNumber became 3 in
// the last operation and we just multiplied it by 2
firstNumber -= secondNumber
// firstNumber is now 4
firstNumber /= secondNumber
firstNumber /= secondNumber
// that was on purpose because I want you to guess what the value is
var name = "John"
var lastName = "Doe"
var name += (" " + lastName)
// name is now "John Doe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment