All articles

JavaScript

2026-05-31
javascriptprogrammingwebdev

An introduction to JavaScript, exploring its core capabilities and why it is essential for building modern, interactive websites.

မြန်မာဘာသာဖြင့် ဖတ်ရန်

What is JavaScript?

JavaScript is a cross-platform, object-oriented scripting language used to make websites dynamic and interactive. On top of that, there are also server-side versions of JavaScript, such as Node.js. As the word "Script" in its name suggests, JavaScript is both an interpreted language and a scripting language.

Client-side JavaScript, which is used inside the browser, comes with built-in objects to control the browser and the Document Object Model (DOM). That is why, within a browser, JavaScript can alter the appearance and structure of a webpage (DOM). When JavaScript was originally created, it was designed specifically as this kind of client-side language.

Later on, a technology called Node emerged, allowing JavaScript code to be interpreted and executed without needing a browser. Server-side JavaScript (Node.js) provides additional objects relevant to server operations, enabling it to process and respond to requests sent from the browser.

Because of this, JavaScript has now evolved into a general-purpose, versatile language. Today, you can use JavaScript to build everything from web applications and mobile apps to desktop software.


JavaScript နဲ့ Java

Although JavaScript and Java are similar in name, they are separate technologies that are not related to or connected with each other. Java is more commonly used for creating enterprise software and Android apps. JavaScript is more commonly used for creating web apps and web services. Java is a compiled language, whereas JavaScript is an interpreted language. Additionally, Java is statically typed in nature, while JavaScript is loosely typed.

Getting Started with JavaScript

To start working with JavaScript, you only need one of the modern browsers such as Firefox, Chrome, Microsoft Edge, or Safari. These browsers support almost all JavaScript features. You can run JavaScript code directly in the browser's console. Just right-click and select Inspect (or press F12), then go to the Console tab.


References

JavaScript - လို-တို-ရှင်း (အိမောင်-fairway)

MDN Web Docs - Introduction to JavaScript