---
title: '6 Basic Coding Concepts You MUST Know For Beginners'
source: 'https://youtube.com/watch?v=pKFcVs2HibA'
video_id: 'pKFcVs2HibA'
date: 2026-08-02
duration_sec: 331
---

# 6 Basic Coding Concepts You MUST Know For Beginners

> Source: [6 Basic Coding Concepts You MUST Know For Beginners](https://youtube.com/watch?v=pKFcVs2HibA)

## Summary

This video introduces six fundamental programming concepts that every beginner should know: variables, data types, if statements, functions, arrays, and loops. The presenter explains each concept with practical examples, such as calculating age, and emphasizes the importance of understanding these basics before moving on to more complex topics.

### Key Points

- **Introduction** [00:00] — The video starts by acknowledging that programming can be overwhelming due to conflicting advice, and stresses the need to master basic skills before learning advanced concepts like data structures and algorithms.
- **Variables** [00:26] — Variables are used to store data, like a date of birth, allowing you to reuse and change values without modifying the entire code. Example: storing today's date in a variable.
- **Data Types** [00:52] — Data types define the kind of value a variable holds (e.g., integer, string). In some languages, you must declare the type, and changing it later can cause issues, which is why commercial languages like Java enforce strict typing.
- **IF Statements** [01:30] — IF statements allow your program to make decisions based on conditions. For example, checking if a user is old enough to watch a film. Conditions use comparison operators like greater than or equal to, and can be combined with AND (&&) and OR (||).
- **Functions** [02:40] — Functions are reusable blocks of code that take inputs and produce outputs. They help avoid code duplication and make programs easier to maintain. Example: a function to calculate age from a date of birth.
- **Arrays** [04:11] — Arrays are data structures that store multiple values in a single variable, like a list of dates of birth. You can add, remove, and access elements by index.
- **Loops** [04:50] — Loops, such as for and while loops, allow you to repeat code. While loops run until a condition changes, while for loops are used when you know how many times to iterate, like looping through an array.
- **Conclusion** [05:18] — Mastering these six concepts gives beginners a solid foundation to start learning any programming language.

### Conclusion

The video concludes that understanding these six core concepts—variables, data types, if statements, functions, arrays, and loops—provides a solid foundation for beginners to start their programming journey.

## Transcript

overwhelming at first. Not only are there lot of conflicting advice on what you structures and algorithms, SOLID, O
the basic skills then you're going to principles and understanding from the until you are fluent in JavaScript.
until you understand how an array works. your brain works. So if you're brand new something new. Number 1 is variables.
using. Say for example you're writing a their date of birth. The date of birth in without needing to change the code
example, I have today's date as a of code is doing. Now number 2 is data supported. These are the types of values
using, a variable's data type might be "declare it" to use correct terminology, or change the data type of a variable
and later change to a string. Once you applications it becomes a pain as it's your code. This is why commercial
or Java. Number 3, IF statements. things depending on what the inputs are. application depending on the value of
age example from earlier. Say you want to use an IF statement and check the value a message to say "Enjoy the film" if not
that you put in an if statement needs to logical conditions you can use in your than or equal to, greater than, greater
multiple conditions together with the you just use the words AND and OR ampersand (&amp;&amp;) for AND and a double pipe (||) for
pipes (||) then make sure you actually operations which I'll cover in another true and false are also represented as
age calculation. The part in brackets part of the code is doing is working out the month and day of your date of birth.
to 1, so it subtracts 1 from your age 0 and doesn't subtract anything. One of the key principles of software
As your program gets bigger there are multiple places you want to calculate want the same piece of code scattered
isn't much difference between functions takes an input and calculates an output. give you an output. The print statement
as it prints text to the screen but define it and give it a name. In our case important to give your functions and
understand when you're reading your code. had earlier to calculate the age into variable at the end. It's important to
as the ones you're using outside a to make changes to the ones outside. This languages such as C# it's possible
Last we need to call the new function to even turn our print statements into a here to turn our integer into a string
data structures in programming. We to store one value. Arrays are used to instead of having one date of birth, we
array in most languages, you can add and Python for example this is done with the have an array of values you need a way
the array. Which brings us nicely onto For loops. While Loops are used to loop a variable or waiting for a user to get
would use a while loop for. For loops, on therefore use a loop in our code to loop these 6 things you should have enough
programming language to start with you beginners. Thank you for watching, see you next time!
