You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Week2/README.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,11 @@
11
11
* Start at https://www.freecodecamp.com/challenges/write-reusable-javascript-with-functions
12
12
* And make the next couple assignments until your reach: Assignment with a Returned Value
13
13
* Add a useful function to your website:
14
-
*Write a js feature that follows the following rules
15
-
1. It takes user input on a website (look up input fields)
16
-
2. It uses that input as parameters for a function
17
-
3. The function does something with the parameters and returns a value using 'return'
18
-
4. The return value is used on the website.
14
+
Write a js feature that follows the following rules
15
+
1. It takes user input on a website (look up input fields)
16
+
2. It uses that input as parameters for a function
17
+
3. The function does something with the parameters and returns a value using 'return'
18
+
4. The return value is used on the website.
19
19
* For instance: Create a function that allows people to input a certain product they eat or drink every day and then asks how long they expect to live (for instance someone smokes one pack of cigarettes a day and expects to live 25 more years) then they might spend 1 X priceOfPack x 365 x lifeExpectancy euros on that product
20
20
* Be creative. If your idea is too complex to finish, don't worry, this exercise is really about trying to write some code yourself and applying what you've learnt.
0 commit comments