<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<center>
<button onclick="sum()">Click me</button>
</center>
<script src="js/script.js">
</script>
</body>
</html>
Script.js
// alert("Hello world")
// document.write("<h2 align='center'> Hello World</h2>")
// console.log('Hello this is log')
function sum() {
alert(30 + 20)
}
// sum()
// sum()
// sum()
// sum()
// sum()
// sum()
Comments
Post a Comment