Skip to content

Commit

Permalink
js logic building
Browse files Browse the repository at this point in the history
  • Loading branch information
MKAIF5 committed Jun 15, 2024
1 parent 8839975 commit aadf1dd
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion JS-LOGIC-BUILDING-PRACTICE/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,26 @@

// console.log(currentDay.toPrecision())

// console.log(now.getHours() + ":" + now.getMinutes() + ":" + now.getSeconds());
// console.log(now.getHours() + ":" + now.getMinutes() + ":" + now.getSeconds());

// Write a JavaScript program to print the current window contents

// function print(){
// console.log(window);
// }

// print()

const number1 = prompt("Please type some number here");

const firstNumber = parseInt(number1);


const number2 = prompt("Please type second number here");

const secondNumber = parseInt(number2);
const randomNumber = Math.round(Math.random() * (firstNumber + 1)) + firstNumber;

const sentence = " Hi, is your number " + randomNumber + "?";

console.log(sentence)

0 comments on commit aadf1dd

Please sign in to comment.