Facebook Twitter Instagram
    • Home
    • About Us
    • Tutorial
      • Graphics Design
        • Photoshop
        • Illustrator
      • AutoCAD
      • Web Design & Development
      • Freelancing
      • Business
      • Trouble Shooting & Networking
      • Digital Marketing
      • Other
    • Videos
    • Contact Us
    Facebook Twitter Instagram Pinterest Vimeo
    learner24
    • Home
    • About Us
    • Tutorial
      • Graphics Design
        • Photoshop
        • Illustrator
      • AutoCAD
      • Web Design & Development
      • Freelancing
      • Business
      • Trouble Shooting & Networking
      • Digital Marketing
      • Other
    • Videos
    • Contact Us
    Subscribe
    learner24
    Home»Freelancing»Learn JavaScript in just 10 Days: Your First Program
    Freelancing

    Learn JavaScript in just 10 Days: Your First Program

    MarufBy MarufOctober 6, 2017Updated:September 8, 2023No Comments3 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
    Learning JavaScript
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Learning JavaScript in just 10 Days

    Javascript can do a lot of work in the browser window. But we like to know some important basic tasks that can do Java Script for you.

    • In a web page or web application JavaScript give the “Life” that is very much important in recent time. Because now user often wants to interact with the webpage while browsing.
    • JavaScript can react to any kind of event in the browser window.
    • It is used to create a dynamic and interactive web page that gives Rich Experience to users.
    • JavaScript can be used to validate data or form data.
    • It is used to create cookies where the browser can store the user’s information.

    Learning Javascript Syntax:

    Writing JavaScript is not difficult. As a Script, its syntax is very simple and easy. First, you should write the script opening tag and as well as put the script closing tag in body tags. Then write your first script within the script tags. I like to show you our first Javascript program. But how can you write this script? Don’t Worry! You can download NotePad++ or you can simply use Notepad or any kind of plain text editor. As an advanced web designer of course you can use Adobe Dreamweaver. Now write the following scripts.

    <!DOCTYPE html>
    <html>
    <head>
    <title>First JS Program</title>
    </head>
    <body>
    <script type=”text/javascript”>
    document.write(“Hello Javascript”);
    </script>
    </body>
    </html>

    After writing the script you should save it in a folder, say your file name will be “firstProgram”. Of course save the file as an HTML file, which means .html or .htm

    Now the first thing is we put the script type. But it is not mandatory. If you just write the script tag it will work. The second thing is we write a syntax that starts with a document. write. It is a method to write anything on your HTML page. That means if you want to see any output from your script you can simply put it in the brackets of the document. write(). The final thing is we should put a semicolon after any statement to terminate it. When you write a single statement, it is mandatory. But when you write multiple statements it is a must.

    OK, that’s all for today. Hope you will find more interesting topics in my next post on Javascript. If you need help then don’t forget to write a comment. If you find any error then please inform me.

     

    day-2 JS
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleHow to Use AutoCAD Keyboard Shortcut Command
    Next Article Some Important Tips……………..For our PC related Issues
    Maruf
    • Website

    Related Posts

    Linux

    How to configure Network Information Systems

    October 27, 2019
    Linux

    How to recover lost data

    October 6, 2019
    Linux

    How to configure Dynamic Host Protocol

    October 6, 2019
    Add A Comment

    Leave A Reply Cancel Reply

    Facebook Twitter Instagram Pinterest
    © 2025 ThemeSphere. Designed by ThemeSphere.

    Type above and press Enter to search. Press Esc to cancel.