Syntax in Programming – Programming Foundations #04

What is meant by a syntax in Programming? Every programming language comes with its own set of rules that outline the grammar and spelling within which it operates. This is called the syntax of a programming language. The syntax specifies the exact combination of symbols and characters that you can use to write code in a chosen language that will be understood by the computer. 

syntax programming

Nearly every programming language has its own rules/syntax when it comes to grammar and structure

Learning correct syntax in programming practices can go a long way when you’re a beginner. It also becomes way easier to master a language once you get familiar with its syntax.

The syntax of any programming language is basically a collection of words, not too different from our own human language. When these words are used together correctly, it will result in a piece of code that is syntactically correct.

In the next tutorial, we will start with a simple programming language to understand things a little bit better. We will be using JavaScript, a simple yet popular language you can use to get real results.

JavaScript is a programming language that is used to work with browsers and web pages. It’s supported by almost any web browser, be it Chrome, Firefox, Opera, Safari or even Internet Explorer.

syntax programming

Right at the offset, you need to know that Java and JavaScript are two entirely different languages. They share little similarity except for their names. JavaScript while being a programming language is also a scripting language.

Scripting languages are interpreted languages and different from languages like C and C++ which are compiled languages. See our chapter on Compiled vs. Interpreted Languages for more on this. In the next lesson we will explore the syntax  in programming structure of JavaScript.

So what’s next? It’s time to move onto some JavaScript basics. And while you’re here, feel free to check out our Python tutorials and cool tips and tricks that can help you get stuff done!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.