Skip to content
Snippets Groups Projects

Update exercises/exercise1/Exercise1_Description.md

Merged Andrej Rasevic requested to merge arasevic-main-patch-22296 into main
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -5,8 +5,8 @@
## Specifications/Requirements
1. Everything you need to do is inside the `script tag` inside the `index.html` starter file we have provided you with.
2. You need to define to variables: firstName and lastName. You can initialize them to whatever values you choose.
2. You need to define two variables: firstName and lastName. You can initialize them to whatever values you choose.
3. You need to define a function named MyConcatenate that takes 2 parameters, first and last. It will return a string that will be equal to this: "Hello. My name is <first> <last>.
4. You will invoke this function with the values you defined for requirement 2 and print out the result to the console.
5. You will need to commit your changes and push them to your repository on the University Gitlab server.
__NOTE__ You may not declare your variables with the `var` keyword. You must also use the template literal syntax I covered in lecture. You may not concatenate strings.
\ No newline at end of file
__NOTE__ You may not declare your variables with the `var` keyword. You must also use the template literal syntax I covered in lecture. You may not concatenate strings.
Loading