Microsoft Developer Network - JavaScript Community

Explore topics, forums, and resources for all your JavaScript development needs.

JavaScript Fundamentals

Learn the basics of JavaScript programming, including variables, data types, operators, and control flow.

JavaScript is a versatile scripting language that is used to add interactivity to web pages. It is one of the core technologies of the World Wide Web, alongside HTML and CSS.

Variables

Variables are used to store data values. In JavaScript, you can declare variables using the var, let, or const keywords.


var myVariable = "Hello";
let anotherVariable = 10;
const PI = 3.14159;
            

Data Types

JavaScript supports several data types, including: