Skip to content

Commit

Permalink
Idek what change I made here
Browse files Browse the repository at this point in the history
  • Loading branch information
Lara3333 committed Oct 24, 2024
1 parent 75740e4 commit 77dffe5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
22 changes: 17 additions & 5 deletions _notebooks/CSSE/Sprint_3/2024-09-26-big-idea-3-7-2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,34 @@
"<h1><span style=\"font-family: Ariel; color:#80deea\">Nested Conditionals Code Example in Javascript</span></h1>\n",
"To gain a better understanding about Nested Conditionals and how they work, first we need to understand what condtionals are; Conditionals in general are \"if-then\" statements. They allow your program to make decisions based on certain conditions. If the condition is true, the program will do one thing; if it’s false, the program will do something else (or nothing at all). Here's an example. \n",
"Think of it as asking a question and then deciding what to do based on the answer:\n",
"\n",
"Question: \"How are you doing?\"\n",
"\n",
" Answer/Input: \"Good!\"\n",
"=>Result/Output: \"Glad to hear that!^^\"\n",
" Result/Output: \"Glad to hear that!^^\"\n",
"\n",
" Alternative Answer/Input: \"Not that well\"\n",
"=>Alternative Result: \"Sorry to hear that, I hope it isn't that bad.\"\n",
" Alternative Result: \"Sorry to hear that, I hope it isn't that bad.\"\n",
"\n",
"On the other hand, Nested Conditionals are conditionals within other conditionals. Let's use the previous example and extend it to an example with nested conditionals:\n",
"\n",
"Question: \"How are you doing?\"\n",
"\n",
" Answer/Input: \"Good!\"\n",
"=>Result/Output: \"Oooh~! Did something fun happen?\"\n",
"\n",
" Result/Output: \"Oooh~! Did something fun happen?\"\n",
"\n",
" Answer/Input # 2: \"Actually, yes, I got an A for an assignment in my CSSE class ^^\"\n",
" =>result/Output # 2:\n",
"\n",
" Result/Output # 2: \"Ooh nice job! ^^\"\n",
"\n",
" Alternative Answer/Input: \"Not that well\"\n",
"=>Alternative Result: \"Sorry to hear that, what happend?\"\n"
"\n",
" Alternative Result: \"Sorry to hear that, what happend?\"\n",
"\n",
" Answer/Input #2: \"I threw up in front of my entire class.\"\n",
" \n",
" result/output #2: \"Oh... That probably sucks...\"\n"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions _notebooks/CSSE/Sprint_3/2024-09-26-big-idea-3-7-4.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<h><span style=\"font-family: Ariel; color:#ffa994\"> Hack 2: Write Javascript code deciding whether or not you can bake a cake. </span></h>\n",
"<h><span style=\"font-family: Ariel; color:#ffcccc\"> Hack 2: Write Javascript code deciding whether or not you can bake a cake. </span></h>\n",
"\n",
"Check the following conditions:\n",
"\n",
Expand Down Expand Up @@ -79,7 +79,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<h3><span style=\"font-family: Ariel; color:#ffa994\"> Javascript Quiz </span></h3>\n",
"<h3><span style=\"font-family: Ariel; color:#ffcccc\"> Javascript Quiz </span></h3>\n",
"\n",
"**Question 1:**\n",
"\n",
Expand Down

0 comments on commit 77dffe5

Please sign in to comment.