Get started with JavaScript explane

GETTING STARTED

Getting started with JavaScript is easy: all you need is a modern Web browser.

The console tool built into your web browser is useful for experimenting with JavaScript.

WHAT IS JAVASCRIPT ?

JavaScript is a cross-platform, object-oriented scripting language used to make web pages interactive.

Client-Side JavaScript-extends the core language by supplying objects to control a browser and its Document Object Model (DOM).

Server-side JavaScript- extends the core language by supplying objects relevant to running JavaScript on a server.

HELLO WORLD

Open the browser console and write your first “Hello world” JavaScript code:

(function( ){

alert(‘Hello World! ‘);

}) ( );

WHAT NEXT?

In the following posts, we will cover the JavaScript syntax and language features, so that you will be able to write more complex applications.

JavaScript Array Shift() Method The shift() method removes the first item of an array.

The shift() method changes the original array.

The shift() method returns the shifted element.

JavaScript

<Script>

var arr= [ “AngularJS”, “Node. js”, “JQuery”];

var result=arr. shift();

document.writeln( result);

</script>

//output: Angular JS

Leave a Reply

Your email address will not be published. Required fields are marked *