JavaScript-Level-01-Connecting JavaScript

  <html lang="en" dir="ltr">

  <head>

    <meta charset="utf-8">

    <title></title>

  <script src="myscript.js"></script>   

The above red line shows that how Html file is being connected with JavaScript.

  </head>

  <body>

    <h1>Welcome To Your bank!</h1>


  </body>

</html>



Javascript File:syntax for file naming is anyname.js

alert("Welcome to your bank");

var deposit=prompt("How much would you like to deposit today");

alert("you have deposited: " +deposit)

console.log("You are a cool person ")

Comments

Popular posts from this blog

Top 5 Best Books For Python,Data Science & Machine Learning

How To Start A BLOG

Top 50 Most Innovative Companies in 2020

Why Should We learn C Programming?

Blogger Tutorial