It makes sense to start by learning some of the language basics. Becoming familiar with these will help you to understand some of the oddities in the language, while establishing a base for you to build your skills on top of.
Below is a list of the basics:
Variables and Data Types :
Boolean Logic :
Boolean logic is a type of logic that allows us to work with true and false values. We can compare these values to one another in order to get logical results. We can also perform bitwise operations, which will give us access to individual bits of a value.
Functions are similar to what you might find in other programming languages. They allow us to perform operations on data multiple times rather than doing the same thing each time. They also take data and return it in a specific format without needing to create another variable or perform another operation.
Looping Statements :
Loop statements aren’t something that you’ll use every day while developing websites, but they’re important to know about nonetheless. These allow us to repeat sections of code indefinitely while manipulating the variables used within the loop.
Conditional statements are similar to loops in that they allow us to manipulate the code used within them. However, these are different because they aren’t repeating a certain section of code. Instead, they’re determining whether or not a certain condition is true or false. This will either result in the execution of code or its omission.
Below is a list of some of the most important objects:
Objects allow us to create unique instances of a system or set of variables. Each object that we create will then contain variables that we can access and manipulate. Objects also allow us to inherit properties from their parent objects, which gives us the ability to override them without breaking functionality.
Properties allow us to assign values to variables and objects by means of assigning them as members with constants or literal values. We can also change these properties at any time.