- HTML: Allows you to add content to web pages.
- CSS: Determines the layout, style, and alignment of web pages.
- You don’t need a compiler because web browsers can interpret it with HTML;
- Easier to learn than other programming languages;
- The process of finding and handling errors or errors is easier;
- Can function as web page elements or certain events, such as clicks or mouseovers ;
- Can work on various browsers, platforms, and more.
- You can use this programming language to validate input and minimize the process of checking data manually;
- With it, your website becomes more interactive and also able to attract the attention of more visitors;
- Faster and lighter than other programming languages.
- High risk of exploitation;
- Can be abused to activate malicious code on a user’s computer;
- Not all browsers and devices always support this programming language;
- JS code snippets are quite a lot;
- May render differently on each device which leads to inconsistencies.
Well, from the server side, this programming language is mostly implemented for database needs. The way it works is almost the same as other server-side programming languages, such as C# or Java.
If the next process is found to have no output, the process can be run simultaneously with the process that is still running. So, the data processing process can be done much more effectively.
An example of how this works is the activity of streaming videos or embedding YouTube on a website. As long as the video is running, you can still access other information on the website.
Here are some of the most popular programming languages:
|HTML||It stands for Hypertext Markup Language, and is one of the most common programming languages on the web and forms the building blocks of web pages. For example, HTML tags include <p> for paragraphs and <img> for images.|
|CSS||CSS stands for Cascading Style Sheets. With CSS, webmasters can style and determine the appearance of each type of content. To display content, you can do this manually for each element in the HTML. However, if you do it in CSS, you don’t have to repeatedly define the appearance of the elements each time you use them.|
1. Know the Applications Required
- Web browser (Google Chrome, Firefox, or others).
- Text editor (Atom, Notepad, or others).
- Web server , to run programming code.
2. Understand the Code Writing Rules
If you have prepared the application above, then understand the rules of writing js code. This writing rule is important for you to know to be able to run programs with this programming language. Well, here are some rules for writing the code.
- External Line – If previously the writing was pasted in HTML, in this type of writing it is created in a separate file stored in the web server folder.
- Case Sensitivity – Writing the code must also pay attention to capital letters and lowercase letters. Because, the two could be different variables.
- Character Writing – Writing code will ignore characters that use spaces, enter and tabs. However, the ending of each line sometimes requires a sign (;) to get the desired result.
Knowing variables will help you learn programming languages. Simply put, a variable is a name that will represent a value. Well, this variable can be filled with various values.
Var url = “https://yourwebsite.com”;var visitor_count = 12345;
So, in the example above, we create url and visitor_count variables with values in the form of text, and also number.
From the examples above, each variable will be separated by a semicolon. Writing variable names also does not use spaces. If you use two words, you can use an underscore or capital letters.
Now, after getting to know variables in this programming language, you also need to know the type of data to be stored in variables.
- String or text
- Integer or Number is an integer
- Float is a fractional number
- Boolean berupa (true/false)
- Objects of all data types
- Arithmetic Operators – Symbols used to calculate the value of a number variable. Consists of symbols for addition (+), subtraction (-), multiplication (*), power (**), pision (/)
- Assignment Operators – Used to assign assignments to variables, such as assigning values to variables. One of the assignment symbols is (=) .
- Comparison Operators – Relational or comparison operators are operators used to compare two values. Well, the result of this comparison will produce boolean values ’true’ and ‘false’. These operator symbols include, (>), (<), (>=) , and so on.
- Logical Operators – Finally, logical operators. This operator is used to perform operations on boolean values. The symbols for these operators are logical AND (&&), logical OR (||), and negation (!)
- Developed by Netscape and to date 92% of websites have used it;
- Can function as a specific web page element or event , such as a click;
- You can use it on various browsers and devices;
- Faster and lighter than other programming languages;
- Less secure than other programming languages due to their growing popularity;