Conversation
reneemeyer
left a comment
There was a problem hiding this comment.
Hey Shay, great start, just a few comments, other than that your methods look good.
01week/datatypes.js
Outdated
| @@ -0,0 +1,70 @@ | |||
| 1. Write a JavaScript program to display the current day and time. | |||
| function findTime(){ | |||
| const now = new Date(); //find date | |||
01week/datatypes.js
Outdated
| @@ -0,0 +1,70 @@ | |||
| 1. Write a JavaScript program to display the current day and time. | |||
There was a problem hiding this comment.
put this in a comment //1. Write a JavaScript program to display the current day and time. . Without, you will throw an error.
01week/datatypes.js
Outdated
|
|
||
| findTime(); | ||
|
|
||
| 2. Write a JavaScript program to convert a number to a string. |
There was a problem hiding this comment.
put this in a comment, without, you will throw an error
01week/datatypes.js
Outdated
| numToString(30) | ||
|
|
||
|
|
||
| 3. Write a JavaScript program to convert a string to the number. |
There was a problem hiding this comment.
put this in a comment, without, you will throw an error
01week/datatypes.js
Outdated
| stringToNum('89') | ||
|
|
||
|
|
||
| 4. Write a JavaScript program that takes in different datatypes and prints out what type they are. |
There was a problem hiding this comment.
put this in a comment, without, you will throw an error
01week/datatypes.js
Outdated
| dataType('eklgjheoh') | ||
|
|
||
|
|
||
| 5. Write a JavaScript program that adds 2 numbers together. |
There was a problem hiding this comment.
put this in a comment, without, you will throw an error
01week/datatypes.js
Outdated
| } | ||
| sumNumbers(7, 3000) | ||
|
|
||
| 6. Write a JavaScript program that runs only when 2 things are true. |
There was a problem hiding this comment.
put this in a comment, without, you will throw an error
01week/datatypes.js
Outdated
| bothTrue(4, 6); | ||
| bothTrue(null, 6); | ||
|
|
||
| 7. Write a JavaScript program that runs when 1 of 2 things are true. |
There was a problem hiding this comment.
put this in a comment, without, you will throw an error
01week/datatypes.js
Outdated
|
|
||
| 7. Write a JavaScript program that runs when 1 of 2 things are true. | ||
|
|
||
| function oneTrueThing(time) { |
There was a problem hiding this comment.
This function evaluates if time is less than 20, I need a function that returns if one argument evaluates to true. See the above problem for a starting off point.
class 1 project