...
Use of TX and RX pin while uploading the code
We are allowed to use the TX and RX pins as general purpose inputs or outputs (GPIO), which are pins 0 and 1 on the Arduino Uno. However, these pins are primarily intended for serial communication, and are in use when uploading to the board, or communicating with the serial port. So, avoid using them unless you really need to use every single GPIO pin on the board (perhaps you could consider a shift register instead)
Programming Errors
A missing semicolon at the end of a statement
...
An uneven number of opening and closing brackets, or wrongly placed closing brackets.
This is another easy mistake to make, that can cause a real headache. The compiler will recognise that there is a missing curly bracket, but it has no way of knowing where you intended to place it. Typically the compiler will indicate that the bracket is missing at the end of the code block at the last possible place it could be placed. However, this is probably not where it should be! Take great care to go through your code line by line if you ever get a missing bracket message, and ensure it gets put back in the right place.
If you have your code split into multiple tabs in the Arduino IDE, then the compiler will often indicate that the bracket is missing from the wrong tab.
Equals and Comparison
‘=' is not the same as '==’.
...