pull/711/merge
ronilshakya 2 years ago committed by GitHub
commit 0636984162
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,6 +8,7 @@
<body>
<h1>30DaysOfJavaScript:03 Day</h1>
<h2>Booleans, undefined, null, date object</h2>
<button onclick="prompt('enter the new number')"> click me</button>
<!-- import your scripts here -->
<script src="./scripts/main.js"></script>

@ -1 +1,48 @@
// this is your main.js script
// this is your main.js script
console.log(null)
let a = 2;
let b = 2;
console.log(a===b);
let num = 10;
num < 5
? console.log(`${num} is less than 20`)
: console.log(`${num} is not less than 20`)
// let def = prompt('Enter a number', 'number goes here');
// console.log(def)
// let sure = confirm("DO you want to exit page?");
// console.log(sure)
let firstName = 'ronil';
let lastName = 'shakya';
let country = 'nepal';
let city = 'lalitpur';
let age = 20;
let isMarried = false;
console.log(typeof firstName);
console.log(typeof age);
console.log(typeof isMarried);
console.log(4 !== 4)
let s1 = 'python';
let s2 = 'jargon';
console.log(s1.length == s2.length)
// let name = prompt("Enter the name");
// if (name.length > 5)
// console.log('too long')
// else
// console.log('too short')
let now = new Date();
let year = now.getFullYear();
let month = now.getMonth();
let day = now.getDay();
let hour = now.getHours();
let minute = now.getMinutes();
console.log(`${year}-${month}-${day} ${hour}:${minute}`)

Loading…
Cancel
Save