Javascript

Javascript

What is Javascript ?

what is Javascript?

Javascript is a scripting language that enables you to create dynamically updating content, control multimedia, animate images, and pretty much everything else.

  • JavaScript is the Programming Language for the Web.

  • JavaScript can update and change both HTML and CSS.

In other words, Javascript (Js) is a lightweight programming language that is used by web developers commonly to use to create dynamic interaction when developing web pages, applications, servers or even games too.

It creates elements for improving site interaction with web pages, such as dropdown menus, animated graphics, and dynamic background colors.

Most people started learning web development they start with good old HTML and CSS.

From there, they move on to JavaScript. Which makes sense! The three elements together form the backbone of web development.

what is javascript used for?

  • Add interactiveness to the website: if you want more than a static page then definitely use js.

    • Adding items to a basket and making purchases online
      * Playing video or audio files on the site
      * Displaying animations
      * Using drop-down menus

  • Backend web development: Javascript is mostly used for the front end but it also uses for backend development too.

  • web browser-based games: you can create web-based games by using javascript.

  • JavaScript is one of the very few programming languages that can be used in all popular browsers.

  • Because JavaScript is so popular there are a lot of ready-to-go frameworks and libraries that can kick off projects, saving a lot of cost, time and effort for development teams.

How do we use javascript in?

The process of adding the javascript into your file is quite simple only if you know about HTML and CSS.JavaScript can be added directly to a page’s code using <script> tags and giving them the type attribute text/javascript.

h1{
color:crismon;
background-color:plum;
}

/*to add javascript */
<script type="text/javascript">
/*javascript code here*/
</script>

Javascript Framework

There are a lot of javascript frameworks available in the market. but before you need to know what is a framework🤔??

  • A framework is similar to a template in that you can modify it and add certain features and higher functionalities to create a complex and broad project that many people can use.

  • a set of tools and modules that can be reused for various projects. One of the most well-known and used frameworks is the Microsoft .NET Framework for websites.

Advantages of Framework

  • The programmer saves time since he already has the skeleton on which to develop an application.

  • It helps you avoid duplicate and redundant code.

  • It makes it easier for developers who did not write the code to test and debug it.

  • They help you write clean and secure code

  • The time required to develop an application is significantly reduced because you can now focus on writing project-specific code.

😕 let's see the examples

  • Net is Microsoft Framework and one of the most used.

  • Symphony: PHP free software project.

  • Zend Framework: Open source framework for developing web applications and with PHP web services.

  • Laravel. One of the easiest open-source frameworks to assimilate for PHP.

  • Django: open-source web development framework is written in Python.

Bootstrap:🙂

is a framework that makes it easy for developers to build a fully responsive website or web application using a collection of reusable HTML, CSS, and JavaScript code. It has a group of pre-defined codes in a downloadable file or CDN that anyone can access and use.

There are already templates are available in bootstrap website we no need to create html boiler plate(basic structure of page ).without wasting our time we can directly go through our main programming.