Skip to content

Commit

Permalink
Update 2_ConditionalsExercise.js (#1573)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhong21 authored Jun 24, 2021
1 parent e8c3643 commit 844447f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions prework/2_ConditionalsExercise.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// function exercise0(num1, num2) {
// let myAnswer;
// // ------------------------------------------
// // Write your code for exercise 1 below here:
// // Write your code for exercise 0 below here:
// // ------------------------------------------
//
// // ------------------------------------------
Expand All @@ -27,7 +27,7 @@
// function exercise0(num1, num2) {
// let myAnswer;
// // ------------------------------------------
// // Write your code for exercise 1 below here:
// // Write your code for exercise 0 below here:
// // ------------------------------------------
// myAnswer = num1 + num2;
// // ------------------------------------------
Expand All @@ -48,7 +48,7 @@
// Write an if statement that checks if a variable `num1` is greater than 10.
// If it is, then within your if statement code change the value of answer1 so
// that its new value would be a string that says:
// "The value of num1 is <value here> and is greater than 10".
// "The value of num1 is <num1 value> and is greater than 10".

function exercise1(num1) {
let answer1 = "";
Expand Down Expand Up @@ -206,7 +206,7 @@ function exercise9(item) {
}

// EXERCISE 10.
// This is question is a modified version of a classic programming question
// This question is a modified version of a classic programming question
// called "Fizz Buzz"
// Using a conditional, assign a value of:
// "Fizz" to `answer10` if the value of `num10` is divisible by 3
Expand Down

0 comments on commit 844447f

Please sign in to comment.