From fa7ac2949bc44a001b3b00d425a24c485c67f130 Mon Sep 17 00:00:00 2001 From: Jonathan Branan Date: Tue, 17 Sep 2024 14:41:00 -0500 Subject: [PATCH] current work --- 4/cointoss.html | 13 +++++++++ 4/forarray.html | 7 +++++ 4/forof.html | 9 +++++++ 4/if.html | 12 +++++++++ 4/ifelse.html | 17 ++++++++++++ 4/jonarrayforof.html | 8 ++++++ 4/jonathanarrayfor.html | 8 ++++++ 4/sayhello.html | 11 ++++++++ 4/while.html | 11 ++++++++ 5/function.html | 6 +++++ 5/functioncalledcallback.html | 19 +++++++++++++ 5/functiondate.html | 11 ++++++++ 5/functionnumberdic.html | 51 +++++++++++++++++++++++++++++++++++ 13 files changed, 183 insertions(+) create mode 100644 4/cointoss.html create mode 100644 4/forarray.html create mode 100644 4/forof.html create mode 100644 4/if.html create mode 100644 4/ifelse.html create mode 100644 4/jonarrayforof.html create mode 100644 4/jonathanarrayfor.html create mode 100644 4/sayhello.html create mode 100644 4/while.html create mode 100644 5/function.html create mode 100644 5/functioncalledcallback.html create mode 100644 5/functiondate.html create mode 100644 5/functionnumberdic.html diff --git a/4/cointoss.html b/4/cointoss.html new file mode 100644 index 0000000..b40cdd8 --- /dev/null +++ b/4/cointoss.html @@ -0,0 +1,13 @@ + \ No newline at end of file diff --git a/4/forarray.html b/4/forarray.html new file mode 100644 index 0000000..fb5ddb3 --- /dev/null +++ b/4/forarray.html @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/4/forof.html b/4/forof.html new file mode 100644 index 0000000..588c49d --- /dev/null +++ b/4/forof.html @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/4/if.html b/4/if.html new file mode 100644 index 0000000..5cfcdfe --- /dev/null +++ b/4/if.html @@ -0,0 +1,12 @@ + + + \ No newline at end of file diff --git a/4/ifelse.html b/4/ifelse.html new file mode 100644 index 0000000..e108dd9 --- /dev/null +++ b/4/ifelse.html @@ -0,0 +1,17 @@ + \ No newline at end of file diff --git a/4/jonarrayforof.html b/4/jonarrayforof.html new file mode 100644 index 0000000..916fd45 --- /dev/null +++ b/4/jonarrayforof.html @@ -0,0 +1,8 @@ + + + \ No newline at end of file diff --git a/4/jonathanarrayfor.html b/4/jonathanarrayfor.html new file mode 100644 index 0000000..50880ef --- /dev/null +++ b/4/jonathanarrayfor.html @@ -0,0 +1,8 @@ + + + \ No newline at end of file diff --git a/4/sayhello.html b/4/sayhello.html new file mode 100644 index 0000000..f7c0703 --- /dev/null +++ b/4/sayhello.html @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/4/while.html b/4/while.html new file mode 100644 index 0000000..88c25fe --- /dev/null +++ b/4/while.html @@ -0,0 +1,11 @@ + + + \ No newline at end of file diff --git a/5/function.html b/5/function.html new file mode 100644 index 0000000..a69c380 --- /dev/null +++ b/5/function.html @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/5/functioncalledcallback.html b/5/functioncalledcallback.html new file mode 100644 index 0000000..6e9474f --- /dev/null +++ b/5/functioncalledcallback.html @@ -0,0 +1,19 @@ +A function with no parameters that prints how many times it’s +been called. Hint: define a variable outside of the function to +keep track of the number of calls, like we did in the “Side +Effects” section on page 77. + \ No newline at end of file diff --git a/5/functiondate.html b/5/functiondate.html new file mode 100644 index 0000000..37319fb --- /dev/null +++ b/5/functiondate.html @@ -0,0 +1,11 @@ +A function that prints the current date and time. Hint: you can +get the current date and time with new Date(). + \ No newline at end of file diff --git a/5/functionnumberdic.html b/5/functionnumberdic.html new file mode 100644 index 0000000..8ef2bd6 --- /dev/null +++ b/5/functionnumberdic.html @@ -0,0 +1,51 @@ +A function that takes a number from 0 to 5 and returns the +English word for that number. For example, 1 should return "one". +Hint: use an array to define the mapping from numbers to +strings. + \ No newline at end of file