Skip to content

Instantly share code, notes, and snippets.

@appoll
Created February 14, 2022 19:13
Show Gist options
  • Save appoll/24d194c5c26c788e83c12e865e5b9eff to your computer and use it in GitHub Desktop.
Save appoll/24d194c5c26c788e83c12e865e5b9eff to your computer and use it in GitHub Desktop.
L1_E1
// text variables
customerName = "Florian";
customerEmail = "[email protected]"
// numerical variables
customerAge = 25;
console.log("My name is: " + customerName);
console.log("I live in: " + "Hamburg");
// E1.
// a. Create a variable and give it the value of your home city;
homeCity = "Berlin";
console.log(homeCity);
// b. Create a second variable for the city in which you were born;
// c. Create a 3rd variable and store the distance between the 2 cities;
// d. Print on one line, the following:
// I was born in .... I now live in ..... The distance between ... and .... is ... kilometers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment