Programming in JavaScript

JavaScript is one of the most powerful languages that plays a vital role in any web development project and delivers client-side support and rich functionality. In this section, we will discuss the core concepts of writing programs in JavaScript and use them in web applications.

Core fundamentals of JavaScript

Like any other programming language, JavaScript also has statements, expressions, operators, and specific syntax to write and run programs. We will go through the following topics in this section:

  • Adding JavaScript to an HTML page
  • Statements
  • Literals and variables
  • Data types
  • Expressions and operators

Adding JavaScript to an HTML page

Every modern browser has a JavaScript engine that compiles your JavaScript defined on the ...

Get JavaScript for .NET Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.