JavaScript for Beginners and Developers
JavaScript is one of the most popular programming language in the world. Although javaScript programming language is there from last 25 years or so, it is gaining momentum since last few years.
Application developers were using JavaScript for client side programming, but nowadays they are using for server side service implementations.
Lot many good framework and libraries available in support of javascript like Nodejs, AngularJS, ReactJS , Aurelia and Vue.js etc .
So as the user community increasing rapidly more and more applications are being developed using javascript frameworks.
At present widely used for Web MEAN and MERN stack application development, Mobile Development, Windows desktop applications, cross-platform applications and many more.
Why JavaScript ?
JavaScript is an Interpreted programming.
JavaScript is also an scripting language.
Easier to code than the compiled languages like C and C++.
Lightweight and most commonly used script in web pages.
Most popular programming language in the world.
Standardized in the ECMA Script language specification.
The JavaScript language is open source and available free.
JavaScript language runs in the browser.
JavaScript adds interactivity to HTML pages.
Allow client side user to interact and create dynamic pages.
Client-side means that the JavaScript language runs in the browser.
Where JavaScript is Used ?
Used to create interactive and dynamic pages.
Used in Web Forms Validations.
Used in Web Applications Development
Used to develop Hybrid Mobile Applications
Used for server side business Service Implementation.
Used to create Windows desktop applications
Used to create cross-platform applications via frameworks.
Used for Inserting and swapping Contents in Web Pages
Used across various platforms and browsers
1. Writing and Running first JavaScript Program
The script tags and type attribute are required to include JavaScript code in an HTML file. Include script in body tag in html file run the program in browser.
<! — my first program — first.html →
<html>
<head>
<title>hello</title>
</head>
<body>
<script type=”text/javascript”>
alert(‘hello world’);
</script>
</body>
</html>
Get Collabatech’s stories in your inbox
Join Medium for free to get updates from this writer.
2. Running JavaScript Program
The script tags and type attribute are required to include JavaScript code in an HTML file. Include script in head tag in html file run the program.
<!– second.html à
<html>
<head>
<title>hello</title>
<script type=”text/javascript”>
document.write(‘hello world’);
</script>
</head>
<body>
</body>
</html>
3. Running JavaScript Program
1.Using Browser and Text Editor — Enter info in editor and save file as html and then launch in browser. To see the output, double click on file in folder to see output in browser.
<!– third.html ->
<html>
<head>
<title>My First Javscript program
</title>
</head>
<script type=”text/javascript”>
function callme(){
alert(“Hello world”);
// instead of alert you can use : document.write(‘Hello World’);
}
</script>
<body>
<button TYPE=”button” name=”Click me” onClick=”callme()”>Click Me</button>
</body>
</html>
For on programming refer to videos::
Python Basics for Fresh Programmers and Beginners
Python API’s for Applications and Web Development
Python Object Oriented Programming In and Out for Developers
Java Object Oriented Programming ( OOPS ) for Developers
Java Basics Programming — Fast Track Beginners & Developers









