Use [] to find tag! Example: [flutter, javascript]

Javascript made easy
Javascript made easy

Chapter 1

Introduction

remove_red_eye 1897 Times
spellcheck 278 Words, 2036 Characters
*Note: this book is still ongoing until it has a finished label.

A bit of History

Javascript is a programming language that is easy to understand. This language was first used in a web browser that had the first graphical interface (mosaic), which was released in 1993. In November 1996, Javascript officially had an international standard called Ecma International which was submitted by Netscape and until now it was developed to become Javascript. modern (latest Ecma International).

Popularity of JavaScript

Javascript is a very popular language today, because besides being an old language, we can also use this language to create web, api, desktop, and even mobile apps. Even though the search graph on Google Trend seems to be decreasing, this language is still popular. The following is a Google trend graphic from 2004 to 2022

Characteristic Javascript

Dynamic Data Types

Javascript is a dynamic language, if you have ever used PHP, you will not be surprised by this language, because JavaScript has dynamic data types like PHP. The data types that are automatically generated in JavaScript are string, number (can be integer or floating), and boolean .

Interpreter Based

Bahasa ini tidak langsung diterjemahkan ke mesin, melainkan dijalankan pada runtime yang nantinya diterjemahkan ke bahasa mesin. Contohnya, jika pada browser, javascript berjalan pada sisi client yang nantinya akan di terjemahkan oleh browser ke dalam bahasa mesin. Begitu juga dengan runtime lainnya, seperti nodejs ataupun bun.

Case Sensitive

var fullName = 'paijo';
var fullname='sukidi';
console.log(fullName);
console.log(fullname);

The output will be like this.

paijo
sukidi

Control Statements

JavaScript dilengkapi dengan pernyataan kontrol seperti if-else-if, switch-case, dan loop seperti for, while, dan do-while loop. Pernyataan kontrol ini menjadikannya bahasa pemrograman yang kuat, memungkinkan penggunanya untuk menulis logika yang kompleks.

Asynchronous Processing

JavaScript is also equipped with asynchronous processing, which will be a non-blocking  process even though JavaScript is a single thread .

Next Article (Data Type)
Content Navigation