Created
February 14, 2022 19:13
-
-
Save appoll/24d194c5c26c788e83c12e865e5b9eff to your computer and use it in GitHub Desktop.
L1_E1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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