Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DocTYPE <!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Black JACK GAME</title>
</head>
<body>

</body>
</html>
55 changes: 55 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
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);

/*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
*/
Empty file added style.css
Empty file.