Java Script starting file
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Javascript</title>
</head>
<body>
<h1>Welcome to ritesh javascript tutorial </h1>
<div class="container">
<button id="click">click me </button>
</div>
<script>
</script>
</body>
</html>
or where you can add script source
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Javascript</title>
</head>
<body>
<h1>Welcome to ritesh javascript tutorial </h1>
<div class="container">
<button id="click">click me </button>
</div>
<script src="location "></script>
</body>
</html>
-------------------------------------------------------------------
id cant be duplicated only to identify
--------------------------------------------------------------------------------------------------
console API and ways to interact with the console
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Javascript</title>
</head>
<body>
<h1>Welcome to ritesh javascript tutorial </h1>
<div class="container">
<button id="click">click me </button>
</div>
</body>
<script>
console.log("Hello world" , 4+6 , "New Log");
alert("He there");
document.write("This is an document");
console.warn("This is warning");
console.error("This is an error");
console.assert(4==4)
</script>
</html>
Comments
Post a Comment