11Functions are very powerful.
22
3- * You can write more than one line of code inside of functions.
4- * You can use variables inside of functions.
5- * You can call other functions inside of functions!
3+ - You can write more than one line of code inside of functions.
4+ - You can use variables inside of functions.
5+ - You can call other functions inside of functions!
66
77``` js
88function getAgeInDays (age ) {
@@ -19,9 +19,9 @@ function createCreeting(name, age) {
1919
2020## Exercise 1
2121
22- * In ` exercise.js ` write a program that displays the percentage of students and mentors in the group
23- * The percentage should be rounded to the nearest whole number (use a search engine to find out how to this with JavaScript)
24- * You should have one function that calculates the percentage, and one function that creates a message
22+ - In ` exercise.js ` write a program that displays the percentage of students and mentors in the group
23+ - The percentage should be rounded to the nearest whole number (use a search engine to find out how to this with JavaScript)
24+ - You should have one function that calculates the percentage, and one function that creates a message
2525
2626> Consider: should your percentage function do the rounding, or should it be done when the greeting is created?
2727
@@ -34,9 +34,9 @@ Percentage mentors: 35%
3434
3535## Exercise 2
3636
37- * In ` exercise2.js ` you have been provided with the names of some mentors. Write a program that logs a shouty greeting to each one.
38- * Your program should include a function that spells their name in uppercase, and a function that creates a shouty greeting.
39- * Log each greeting to the console.
37+ - In ` exercise2.js ` you have been provided with the names of some mentors. Write a program that logs a shouty greeting to each one.
38+ - Your program should include a function that spells their name in uppercase, and a function that creates a shouty greeting.
39+ - Log each greeting to the console.
4040
4141## Expected result
4242
0 commit comments