Basics OF JavaScript



What is JavaScript..?


object-oriented programming language commonly used to create interactive effects in web browsers.JavaScript engines are now integrated with many other types of host software, including server-side databases and Web servers, as well as non-Web programs such as word processing and PDF. only in run time environments making JavaScript available for writing on desktops and mobile applications, including desktop widgets.




Lets start Learn Java script...

In HTML java script type in between <script> tags.

<script>document.getElementById("demo").innerHTML = "Test Java Script";</script>

In this script tag  can write in in between <head> tag or <body> tag


Script tag can placed in external files

function f() {
 document.getElementById("demo").innerHTML = "Test funtion.";
}

can call external js file like this

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


You can use console.log() method to debugging purposes. in this method you can display the data.

<script>
console.log(10- 5);
</script>

in js you can declare variables using "var" key word

ex:- var a, b, c;   
   var person = "Hege";


See you in next blog.
Thank You..!!!

































Comments

Popular posts from this blog

MERN App

Node Introduction

React installation