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') 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 diff --git a/01week/datatypes.js b/01week/datatypes.js index e69de29bb..d18022538 100644 --- a/01week/datatypes.js +++ b/01week/datatypes.js @@ -0,0 +1,34 @@ +'use strict' +<<<<<<< HEAD +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!"); +} +======= +let now = new Date (); +console.log ('date and time', now) +const theNumber = 5; +const theString = theNumber.toString(); +const theOtherString = parseInt(theNumber); +console.log ('string', theString, 'number', theOtherString) +>>>>>>> 134ad09047ca1f5b1b2726449f024a5cad50b0dd diff --git a/index.html b/01week/index.html similarity index 100% rename from index.html rename to 01week/index.html