Book Image

Web Developer's Reference Guide

By : Joshua Johanan, Talha Khan, Ricardo Zea
Book Image

Web Developer's Reference Guide

By: Joshua Johanan, Talha Khan, Ricardo Zea

Overview of this book

This comprehensive reference guide takes you through each topic in web development and highlights the most popular and important elements of each area. Starting with HTML, you will learn key elements and attributes and how they relate to each other. Next, you will explore CSS pseudo-classes and pseudo-elements, followed by CSS properties and functions. This will introduce you to many powerful and new selectors. You will then move on to JavaScript. This section will not just introduce functions, but will provide you with an entire reference for the language and paradigms. You will discover more about three of the most popular frameworks today—Bootstrap, which builds on CSS, jQuery which builds on JavaScript, and AngularJS, which also builds on JavaScript. Finally, you will take a walk-through Node.js, which is a server-side framework that allows you to write programs in JavaScript.
Table of Contents (22 chapters)
Web Developer's Reference Guide
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
9
JavaScript Expressions, Operators, Statements, and Arrays
Index

The language syntax


The language syntax is basically a means of communication. In a programming language, it's a formal way of communicating with algorithms, from both algorithms to programmer and programmer to machine. This is because a machine works on given instructions.

These instructions are meant to be written in a specific format, so that a machine could understand and compile it properly. That specific format is defined by some general rules of a programming language, known as language syntax.

A computer contains a list of instructions to be executed. Every computer language has different syntax and rules. To use different languages, we must have knowledge of their language syntax, such as the following:

  • Syntax (a set of symbols and rules)

  • Semantics (for transforming term to term)

  • Pragmatics (the particular construct of a language)

Similarly, other languages in JavaScript have a unique syntax. JavaScript is not a language of Java; these are two different languages and the syntaxes for...