Day 1 : What is JavaScript?

Let,Go....................

Day 1 : What is JavaScript?

JavaScript is a powerful programming language that can add interactivity to a website. It was invented by Brendan Eich in 1997.

JavaScript is a lightweight, cross-platform, and interpreted compiled programming language which is also known as the scripting language for web pages. It is well-known for the development of web pages, many non-browser environments also use it. JavaScript can be used for Client-side developments as well as Server-side developments. Javascript is both an imperative and declarative type of language.

JavaScript contains a standard library of objects, like Array, Date, and Math, and a core set of language elements like operators, control structures, and statements.

console.log(“ ”):-

The console.log() is a function in javascript that is used to print any kind of variable defined before in it or just print any message that needs to be displayed to the users.

Example :-

console.log(“hello world….”);

var a = 10;

console.log(a);

var b = “Hello”;

console.log(b);

var ch = ‘2’;

console.log(ch);

var a = 10;

console.log(“A is: ”+ a);

var b = “world”;

console.log(“Hello ”+ b);