Skip to content

Instantly share code, notes, and snippets.

@davidkathoh
Last active July 13, 2019 09:00
Show Gist options
  • Save davidkathoh/3f65926c0ad1f8898f35ecfe8b2329e1 to your computer and use it in GitHub Desktop.
Save davidkathoh/3f65926c0ad1f8898f35ecfe8b2329e1 to your computer and use it in GitHub Desktop.
difference between val and var
val dateOfBirth = "17 Mars ,1078"
dateOfBirth = "05 Avril, 1089" //erreur
var age = 23
age = 28 //pas de probleme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment