external scripts linking - day 01

pull/626/head
Manojreddykatta 3 years ago
parent 33cf6c074d
commit eca895b077

@ -0,0 +1 @@
console.log('Hello world');

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>
JS practice
</title>
</head>
<body>
<h1>Day-01 of JS</h1>
<script src=./helloworld></script>
<script src=./introduction.js></script>
<script src="./main.js"></script>
<script src="./variables.js"></script>
<button onclick="alert('WELCOME to Day-01 of JS')";>Check</button>
</html>

@ -0,0 +1,11 @@
console.log("Firstname is "+ firstName ,+ "Lastname is "+ lastName );
console.log("Age is " + age );
let maritualStatus = isMarried;
if (isMarried != true )
{console.log("Unmarried");}
else
{console.log("Married");}
console.log("Maritual stastus" + maritualStatus);

@ -0,0 +1,6 @@
let firstName = 'Manoj Reddy';
let lastName = 'Katta';
let age='25';
let isMarried = false;
let weight = 76.8;
Loading…
Cancel
Save