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: javascript1/week4/homework.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,20 +12,20 @@ You will be building a voice assistant 🤖! Is that even possible in javascript
12
12
Create a function called `getReply(command)`. The function should return a response that corresponds to the command!
13
13
14
14
These are the commands you should be able to give the voice assistant:
15
-
-`Hello my name is Benjamin` - Should save the name benjamin. and respond with "nice to meet you Benjamin" What if someone writes this twice?
16
-
-`What is my name` - should respond with the name of the person. What if the name has not yes been mentioned?
15
+
-`Hello my name is Benjamin` - Should save the name benjamin. and respond with "nice to meet you Benjamin". What if someone writes this twice?
16
+
-`What is my name` - should respond with the name of the person. What if the name has not yet been mentioned?
17
17
-`Add fishing to my todo` - Should respond with "fishing added to your todo". Should add fishing to a list of todos
18
-
-`Add singing in the shower to my todo` - Should add shinging in the shower to a list of todos
19
-
-`Remove fishing from my todo` - Should respond with "Removed finshin form your todo"
20
-
-`What is on my todo?` - should repond with the todos. Fx you have 2 todos - fishing and singing in the shower
21
-
-`What day is it today?` - Should respond with the date in a human readable format. Fx if today is 30/8-2019 then it should respond with 30. of august 2019
18
+
-`Add singing in the shower to my todo` - Should add singing in the shower to a list of todos
19
+
-`Remove fishing from my todo` - Should respond with "Removed fishing from your todo"
20
+
-`What is on my todo?` - should respond with the todos. Fx you have 2 todos - fishing and singing in the shower
21
+
-`What day is it today?` - Should respond with the date in a human readable format. E.g. if today is 30/8/2019 then it should respond with 30. of August 2019
22
22
- Should be able to do simple math. fx `what is 3 + 3` should respond with 6. Or `what is 4 * 12` should respond with 48
23
-
-`My favorite dish is spaghetti` - should save the users favorite dish as lasagne.
23
+
-`My favorite dish is lasagne` - should save the user's favorite dish as lasagne.
24
24
-`What is my favorite dish` - should respond with the favorite dish
25
25
-`Set a timer for 4 minutes` - Should respond with "Timer set for 4 minutes". When 4 minutes is up: "Timer done". How do we set a timer in js? Google is your friend here!
26
-
-`Add Bike ride the 3/5-2019 to my calendar` - Should respond with "Bike ride added to your calendar". Should add an event represented by an object with keys `name` and `date` to an array of events.
27
-
-`What am i doing this week?` - should respond with the events for that week. Fx "This week you have 1 event: Bike ride the 3. of may 2019"
28
-
- Add one or more commands to your voice assistant
26
+
-`Add Bike ride the 3/5/2019 to my calendar` - Should respond with "Bike ride added to your calendar". Should add an event represented by an object with keys `name` and `date` to an array of events.
27
+
-`What am I doing this week?` - should respond with the events for that week. Fx "This week you have 1 event: Bike ride the 3. of May 2019"
28
+
- Add one or more command to your voice assistant
29
29
30
30
Here is an example of usage:
31
31
@@ -35,7 +35,7 @@ console.log(getReply('What is my name?')); // "Your name is Benjamin"
35
35
console.log(getReply('Add Bike ride the 3/5-2019 to my calendar')); // "Bike ride added to your calendar"
36
36
```
37
37
38
-
When you are done, add your `getReply` function and global variables to this codeSandbox and try the voice command out with both commands and speech!
38
+
When you are done, add your `getReply` function and global variables to this CodeSandbox and try the voice command out with both commands and speech!
@@ -48,12 +48,12 @@ Go over your homework one last time:
48
48
- Do the variable, function and argument names you created follow the [Naming Conventions](https://github.com/HackYourFuture/fundamentals/blob/master/fundamentals/naming_conventions.md)?
49
49
- Is your code well-formatted (see [Code Formatting](https://github.com/HackYourFuture/fundamentals/blob/master/fundamentals/naming_conventions.md))?
50
50
51
-
If you can answer yes to the above questions then you are ready to hand if the homework:
51
+
If you can answer yes to the above questions then you are ready to hand in the homework:
52
52
53
53
* Use the `hyf-homework` repo and add your homework files in the `javascript/javascript1/week4` folder
54
-
* Make your commits for the homework. Remember to seperate the code into meaningful commits!
55
-
* Push the changes to github
56
-
* Share the github link to your classes slack channel.
54
+
* Make your commits for the homework. Remember to separate the code into meaningful commits!
55
+
* Push the changes to Github
56
+
* Share the Github link to your class' slack channel.
0 commit comments