Skip to main content
Practice

What is a Programming Language?

Unlike HTML, which is a markup language used to define the structure of data and content, and CSS, which is a stylesheet used to define the style of a webpage, JavaScript is a programming language that instructs the computer to perform tasks.

Because computers are complex digital devices that represent and process data in 0s and 1s, they cannot understand human languages like English or Spanish.

Therefore, a programming language serves as a middle ground that is comprehensible to both humans and computers.

The addNumbers function in the example below takes two parameters named a and b, and returns the result of adding these two parameters.

We will explain more about functions later!

Want to learn more?

Join CodeFriends Plus membership or enroll in a course to start your journey.