---
title: Variables & Data Types
description: Variables and data types are the fundamental building blocks of programming used to store and manipulate information. You will understand how to declare variables and work with integers, strings, booleans, and complex structures.
category: programming-tech
subcategory: programming-fundamentals
difficulty: beginner, intermediate, advanced
url: /subject/variables-and-data-types
---

# Variables & Data Types

Variables and data types are the fundamental building blocks of programming used to store and manipulate information. You will understand how to declare variables and work with integers, strings, booleans, and complex structures.

## Available Resources

1 Videos • 2 Books • 4 Courses • 2 Websites

## Websites

### 1. MDN Web Docs - Variables

Mozilla's reference tutorial on declaring and using JavaScript variables. Covers var, let and const, declaration versus initialization, naming rules, reassignment, and the main value types, with editable examples. After it you can store and update data correctly in scripts.

**Difficulty:** Beginner | **Price:** Free

**Link:** https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Variables

**Tags:** javascript, variables, data-types, web-development

### 2. codecademy.com

Codecademy is an online learning platform offering interactive, browser-based coding lessons across languages like Python, JavaScript, HTML/CSS, and SQL. It provides guided courses, hands-on projects, and practice exercises to build practical programming skills.

**Difficulty:** Intermediate | **Language:** English | **Price:** Free

**Link:** https://codecademy.com

**Tags:** websites, technology-computer-science, computer-sciences

## Courses

### 1. Intro to Programming

Khan Academy's interactive JavaScript course, taught with ProcessingJS in an in-browser editor. Through drawing and animation challenges you practice variables, data types, functions, loops, conditionals and arrays, and finish able to write small programs from scratch.

**Difficulty:** Beginner | **Price:** Free

**Link:** https://www.khanacademy.org/computing/computer-programming/programming

**Tags:** javascript, variables, programming-fundamentals, interactive

### 2. CS50's Introduction to Programming with Python

An introduction to programming using Python, a popular language for general-purpose programming, data science, web programming, and more.

**Difficulty:** Beginner | **Price:** Free

**Link:** https://www.edx.org/learn/python/harvard-university-cs50-s-introduction-to-programming-with-python

**Tags:** python, programming-fundamentals, functions, cs50, harvard

### 3. Programming for Everybody (Getting Started with Python)

This course aims to teach everyone the basics of programming computers using Python. We cover the basics of how one constructs a program from a series of simple instructions in Python.  The course has no pre-requisites and avoids all but the simplest mathematics. Anyone with moderate computer experience should be able to master the materials in this course. This course will cover Chapters 1-5 of the textbook “Python for Everybody”.  Once a student completes this course, they will be ready to take more advanced programming courses. This course covers Python 3.

**Difficulty:** Beginner | **Price:** Free

**Link:** https://www.coursera.org/learn/python

**Tags:** python, programming-basics, conditionals, loops, functions

### 4. CS50's Introduction to Computer Science

An introduction to the intellectual enterprises of computer science and the art of programming.

**Difficulty:** Beginner | **Language:** English | **Price:** Free

**Link:** https://www.edx.org/learn/computer-science/harvard-university-cs50-s-introduction-to-computer-science

**Tags:** courses, technology-computer-science, programming-fundamentals

## Videos

### 1. Learn Python - Full Course for Beginners [Tutorial]

A 4.5-hour freeCodeCamp beginner Python course taught by Mike Dane, whose if-statement, while-loop, and for-loop sections cover control flow. Viewers learn to write conditional branches, comparisons, and loops, and combine them into small working programs.

**Difficulty:** Beginner | **Price:** Free

**Link:** https://www.youtube.com/watch?v=rfscVS0vtbw

**Tags:** python, control-flow, conditionals, loops, programming-basics

## Books

### 1. Eloquent JavaScript

**Author:** Marijn Haverbeke

A programming introduction that uses JavaScript as its vehicle, moving from values, bindings and control flow to functions, objects, higher-order techniques and the DOM. Exercises and worked projects build the habit of reading and structuring real code.

**Difficulty:** Intermediate | **Language:** English | **Price:** Paid

**Link:** https://www.amazon.com/dp/1593272820?tag=edmonddante07-20

**Tags:** books, technology-computer-science, programming-fundamentals

### 2. C Programming Absolute Beginner's Guide

**Author:** Greg Perry, Dean Miller

A first course in C for readers with no programming background, working through variables and data types, operators, input and output, arrays, pointers, functions and file handling in short lessons with complete compilable examples.

**Difficulty:** Intermediate | **Language:** English | **Price:** Paid

**Link:** https://www.amazon.com/dp/0789751984?tag=edmonddante07-20

**Tags:** books, technology-computer-science, programming-fundamentals

---

*This content is part of Dantes.io - Your Treasure Map to Knowledge*

*Curated by humans at Dantes.io. Personal study use welcome; republishing this curation requires permission (team@dantes.io).*

View this page online: https://dantes.io/subject/variables-and-data-types