From f69fff9542fac147573a0c0718741c634da72cb9 Mon Sep 17 00:00:00 2001 From: Swap <108745622+Swap2104@users.noreply.github.com> Date: Mon, 27 Nov 2023 22:52:38 +0530 Subject: [PATCH] Updated code block deliamiters in rock_paper_scissors project (#26825) Co-authored-by: Swapnil <108745622+Swapnilnaique@users.noreply.github.com> --- foundations/javascript_basics/project_rock_paper_scissors.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/foundations/javascript_basics/project_rock_paper_scissors.md b/foundations/javascript_basics/project_rock_paper_scissors.md index 8c10d37c3a5..d890e2ddf03 100644 --- a/foundations/javascript_basics/project_rock_paper_scissors.md +++ b/foundations/javascript_basics/project_rock_paper_scissors.md @@ -22,7 +22,7 @@ Don't forget to commit early & often! You can [reference the Commit Message less 5. **Important note:** you want to `return` the results of this function call, _not_ `console.log()` them. You're going to use what you `return` later on, so let's test this function by using console.log to see the results: - ~~~javascript + ```javascript function playRound(playerSelection, computerSelection) { // your code here! } @@ -30,7 +30,7 @@ Don't forget to commit early & often! You can [reference the Commit Message less const playerSelection = "rock"; const computerSelection = getComputerChoice(); console.log(playRound(playerSelection, computerSelection)); - ~~~ + ``` 6. Write a NEW function called `game()`. Use the previous function _inside_ of this one to play a 5 round game that keeps score and reports a winner or loser at the end. * You have not officially learned how to "loop" over code to repeat function calls... if you already know about loops from somewhere else (or if you feel like doing some more learning) feel free to use them. If not, don't worry! Just call your `playRound` function 5 times in a row. Loops are covered in the next lesson.