From 9e44785cc5f4499973eac5c5dfd0e93e64c9e274 Mon Sep 17 00:00:00 2001 From: patfitz95 Date: Tue, 24 Mar 2020 19:49:13 -0500 Subject: [PATCH 1/5] My hello world program --- 01week/HelloWorld.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 01week/HelloWorld.js diff --git a/01week/HelloWorld.js b/01week/HelloWorld.js new file mode 100644 index 000000000..51e79f2ce --- /dev/null +++ b/01week/HelloWorld.js @@ -0,0 +1,2 @@ +'use strict' +console.log('Hello World') From 95f9c15d9a3ee55b3e50b872a778d2ca70905a8a Mon Sep 17 00:00:00 2001 From: patfitz95 Date: Thu, 26 Mar 2020 18:19:33 -0500 Subject: [PATCH 2/5] moved over to main computer but updated datatype assignment --- 01week/datatypes.js | 7 +++++++ index.html => 01week/index.html | 0 2 files changed, 7 insertions(+) rename index.html => 01week/index.html (100%) diff --git a/01week/datatypes.js b/01week/datatypes.js index e69de29bb..6ea5753c9 100644 --- a/01week/datatypes.js +++ b/01week/datatypes.js @@ -0,0 +1,7 @@ +'use strict' +let now = new Date (); +console.log ('date and time', now) +const theNumber = 5; +const theString = theNumber.toString(); +const theOtherString = parseInt(theNumber); +console.log (theString, theOtherString) \ No newline at end of file diff --git a/index.html b/01week/index.html similarity index 100% rename from index.html rename to 01week/index.html From 134ad09047ca1f5b1b2726449f024a5cad50b0dd Mon Sep 17 00:00:00 2001 From: patfitz95 Date: Thu, 26 Mar 2020 19:13:31 -0500 Subject: [PATCH 3/5] changes --- 01week/datatypes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01week/datatypes.js b/01week/datatypes.js index 6ea5753c9..888519798 100644 --- a/01week/datatypes.js +++ b/01week/datatypes.js @@ -4,4 +4,4 @@ console.log ('date and time', now) const theNumber = 5; const theString = theNumber.toString(); const theOtherString = parseInt(theNumber); -console.log (theString, theOtherString) \ No newline at end of file +console.log ('string', theString, 'number', theOtherString) \ No newline at end of file From bf92c43fb48bb0d51f264c7241cbecfce3f35807 Mon Sep 17 00:00:00 2001 From: patfitz95 Date: Tue, 31 Mar 2020 15:43:21 -0500 Subject: [PATCH 4/5] Finished datatypes --- 01week/datatypes.js | 25 +++++++++++++++++++++++++ 01week/index.html | 0 2 files changed, 25 insertions(+) create mode 100644 01week/index.html diff --git a/01week/datatypes.js b/01week/datatypes.js index e69de29bb..9569a0b9f 100644 --- a/01week/datatypes.js +++ b/01week/datatypes.js @@ -0,0 +1,25 @@ +'use strict' +let now = new Date(); +console.log('Date and Time',now); +const theNumber = 5; +const theString = theNumber.toString(); +const theOtherString = parseInt(theNumber); +console.log (theString, theOtherString); +console.log (typeof 45); +let AddNum = (a,b) => { + return a+=b; +} +console.log(AddNum(3,9)) +const balance = 500; +const jeans = 40; +const shorts = 30; + +if (jeans <= balance && shorts <= balance) { + console.log("You have enough money to purchase the items!"); +} +if (jeans <= balance || shorts >= balance) { + console.log("You have enough money to purchase the shorts or the jeans! "); +} +if (jeans != balance && shorts != balance) { + console.log("This is a statement!"); +} diff --git a/01week/index.html b/01week/index.html new file mode 100644 index 000000000..e69de29bb From 8fafe3ad9dc2ed9527773151e84eaaa3e0ba58cd Mon Sep 17 00:00:00 2001 From: patfitz95 Date: Tue, 31 Mar 2020 16:30:24 -0500 Subject: [PATCH 5/5] Datatypes --- 01week/dataTypes1.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 01week/dataTypes1.js diff --git a/01week/dataTypes1.js b/01week/dataTypes1.js new file mode 100644 index 000000000..e93f9f415 --- /dev/null +++ b/01week/dataTypes1.js @@ -0,0 +1,25 @@ +'use strict' +let now = new Date(); +console.log('Date and Time',now); +const theNumber = 5; +const theString = theNumber.toString(); +const theOtherString = parseInt(theNumber); +console.log (theString, theOtherString); +console.log (typeof 45); +let AddNum = (a,b) => { + return a+=b; +} +console.log(AddNum(3,9)) +const balance = 500; +const jeans = 40; +const shorts = 30; + +if (jeans <= balance && shorts <= balance) { + console.log("You have enough money to purchase the items!"); +} +if (jeans <= balance || shorts >= balance) { + console.log("You have enough money to purchase the shorts or the jeans! "); +} +if (jeans != balance && shorts != balance) { + console.log("This is a statement!"); +} \ No newline at end of file