From babc74e5eabf1b83d622b5e57227c32ee6f52679 Mon Sep 17 00:00:00 2001 From: silas Date: Thu, 29 Nov 2018 18:19:18 +0300 Subject: [PATCH 1/3] initial commit --- index.html | 10 ++++++++++ script.js | 1 + style.css | 0 3 files changed, 11 insertions(+) create mode 100644 index.html create mode 100644 script.js create mode 100644 style.css diff --git a/index.html b/index.html new file mode 100644 index 0000000..4e0ac96 --- /dev/null +++ b/index.html @@ -0,0 +1,10 @@ + + + + + Black JACK GAME + + + + + diff --git a/script.js b/script.js new file mode 100644 index 0000000..b179ee9 --- /dev/null +++ b/script.js @@ -0,0 +1 @@ +console.log("Hello world"); diff --git a/style.css b/style.css new file mode 100644 index 0000000..e69de29 From f7f402f5edb8ce26f50b8cf315a2417e1651ed1f Mon Sep 17 00:00:00 2001 From: silas Date: Thu, 29 Nov 2018 18:25:29 +0300 Subject: [PATCH 2/3] variable --- script.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/script.js b/script.js index b179ee9..cf43fd9 100644 --- a/script.js +++ b/script.js @@ -1 +1,13 @@ console.log("Hello world"); + +/* variable */ +let productName = "Hammer"; +let productId = "H123"; + +console.log(productName,productId); + +/* or*/ +let productName = "Hammer"; + productId = "H123"; + +console.log(productName,productId); From 0c0fefed309939353dab763dbebec4bb13775812 Mon Sep 17 00:00:00 2001 From: silas Date: Thu, 29 Nov 2018 18:54:56 +0300 Subject: [PATCH 3/3] string and number --- script.js | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/script.js b/script.js index cf43fd9..0b772ef 100644 --- a/script.js +++ b/script.js @@ -11,3 +11,45 @@ let productName = "Hammer"; productId = "H123"; console.log(productName,productId); + +/*string */ +let productName = 'John's Hammer'; + +console.log(productName); +/*get an error causing using singlr quote*/ + +/*string */ +let productName = 'John'\s Hammer'; + +console.log(productName); +/*use backslash*/ + +/*Numbers*/ +let price = 5.00, + price2 = 3.00, + price3 = 4.00; + +console.log(price,price2); +console.log(price+price2); +console.log(price+price3); + + +let firstName = "silas", + lastName = "Omurunga"; + +console.log(firstName + lastName); +console.log(firstName + " " + lastName); + +/*simple operation*/ +let first = 12, + second = 13; + +let answer = first + second; + +console.log(first,second); +console.log(answer); + +//comment +/* + large cooment +*/