Menu
×
   ❮   
     ❯   
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS DSA TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI R GO KOTLIN SASS VUE GEN AI SCIPY CYBERSECURITY DATA SCIENCE INTRO TO PROGRAMMING

What is Programming?

Programming is telling a computer what to do.

Being good at programming means you can make the computer do what you want.

Get Started With Programming

To master programming, you need to learn the core concepts first.

No matter the programming language, many of the concepts used are still the same.

The first 5 core concepts you need to learn are:

  1. Variables
  2. If Statements
  3. Arrays
  4. Loops
  5. Functions

It is recommended to learn these concepts in the order above.

To fully understand these concepts, you also need to have a basic understanding of data types, boolean logic, and operators.

After you have learned these core concepts, you can move on to more advanced concepts.


Programming Languages

A programming language is how we write code, what keywords we use, to tell the computer what to do.

Different programming languages are used for different purposes, like JavaScript is good for web development, Python is good for AI, and C/C++ is good for programming microcontrollers.

What we actually have to write to make use of for example variables, or functions, is slightly different depending on the programming language, and that is called the syntax of the programming language.

Just look at how a for loop counting down from 10 is written in Python, JavaScript, Java, and C++:

for (let i = 10; i > 0; i--) {
  console.log(i);
}
console.log('Liftoff!');
Run Example »

If you haven't tried programming yet, it is recommended to try the concepts described here yourself as you move along, starting with either Python, or JavaScript as your first programming language.

Since the concepts are the same in all programming languages, you can learn the concepts first in one language, and then use the concepts you've learned in another programming language later.

Go to the next page about variables to start learning programming!:)



×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2025 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.