From the course: Introduction to Career Skills in Software Development

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Basic components of a programming language

Basic components of a programming language - Python Tutorial

From the course: Introduction to Career Skills in Software Development

Basic components of a programming language

- [Instructor] A programming language can be broken down into two components, its syntax or rules and its semantics or meaning. For instance, we would write Welcome in English and use one exclamation mark. But in Spanish we would write Bienvenido. They mean the same thing, but Spanish requires an exclamation mark at the beginning and end, unlike English. This is one rule or syntax of the Spanish language. Likewise, programming languages also have unique syntax rules. Let's look at an example. First we'll look at a language called JavaScript. This is how we would get the program to print out "Hello!" when run. This may look strange to you right now, but that's okay. I want you just to notice the syntax used in the language. It starts with something called document.write, and then a set of parentheses. Next you'll see single quotes around the word Hello. And then the use of a semicolon at the end of the line. These…

Contents