Usually two functions can be seen on an Arduino code
main
The main function runs at first when the board is powered up, or after RESET.
loop
The loop function runs repeatedly or untill a certain condition is met.
Arduino uses a C++ like syntax.
Which is pretty similar to C language.
The main difference is that C++ supports classes, and methods while C does not.
This makes C++ support OOP (Object Oriented Programming), which Arduino also does.
In C language we have data structures.
For the moment think as C++ supports having functions inside a structure.
In Arduino codes, we will see for example Serial.println("Hello World"); here println is a function or what we call a method in Serial.
We will be using such commands which might at first look confusing, but will get very familiar very soon.