Home / Education / What is JavaScript or JS?
javascript

What is JavaScript or JS?

JavaScript (JS) is a scripting language .Which was developed by Netscape. JavaScript is used in HTML.

Main features of JavaScript are as follows:

  • JavaScript(JS) is a lightweight.
  • JavaScript is interpreted programming language.
  • JavaScript is designed for creating network-centric applications.
  • Complementary to and integrated with Java.
  • Complementary to and integrated with HTML .It is mainly written with HTML.
  • It is an open and cross-platform.
  • JavaScript is built into all the major modern browsers.
  • It ignores spaces, tabs, and newlines that appear in JavaScript programs.
  • It always written with starting and ending tags for example <script> js code</script>
  • You can place the <script> tag containing your JavaScript anywhere within you web page but it is preferred way to keep it within the <head> tags.
  • JavaScript also written within footer also.
  • If you consider page loading time then you must written it within footer.

The script tag takes some important attributes:

                  e.g. <script …>   JavaScript code </script>

  • Language: This attribute specifies what scripting language you are using.
  • Type: This attribute is what is now recommended to indicate the scripting language in use and its value should be set to “text/javascript”.
  • So your JavaScript segment will look like:

            <script language=”javascript” type=”text/javascript”>

             JavaScript code  </script>

First JavaScript Script:

Let us write our class example to print out “Hello AllHelpServices!”

<html>

<body>

 <script language=”javascript” type=”text/javascript”>

<!–    document.write(“Hello AllHelpServices!”) //–>

 </script>

</body>

</html>

Result of above code will be : Hello AllHelpServices!

About Helpservices

About This site (allhelpservices.com) is dedicated to helping other bloggers learn the skills of blogging, wordpress, education, technology, social media sharing , SEO, Electronics, Earn Money From Blogging, Web hosting and web share their own experiences and promote the blogging medium. We started Allhelpservices in August 2015 mainly because we wanted to keep a record of what we wear learning from development and because we wanted to connect with other learners.

Check Also

Business Online

9 Ways To Promote Your Business Online For Free

Promote Your Business Online : Here are 9 simple yet powerful marketing tips for promoting ...

6 comments

  1. I loved your article post.Thanks Again. Want more. Koopman

  2. This is one awesome article.Thanks Again.

  3. I really like and appreciate your blog article.Thanks Again. Really Cool.