Script JavaScript
1. JavaScript is easy to learn.
2. This tutorial will teach you JavaScript from basic to advanced.
3. JavaScript is one of the 3 languages all web developers must learn.
4. JavaScript and are completely different languages, both in concept and design.
5. Create a variable called carName and assign the value Volvo to it.
6. JavaScript provides seven different data types which are undefined, null, boolean, string, symbol, number, and object.
7. For example, computers distinguish between numbers, such as the number 12, and strings, such as "12", "dog", or "123 cats", which are collections of characters. Computers can perform mathematical operations on a number, but not on a string.
8.Variables are similar to the x and y variables you use in mathematics, which means they're a simple name to represent the data we want to refer to.
9. Computer variables differ from mathematical variables in that they can store different values at different times.
10. We tell JavaScript to create or declare a variable by putting the keyword var in front of it, like so:
11. In JavaScript we end statements with semicolons.
12. Variable names can be made up of numbers, letters, and $ or _, but may not contain spaces or start with a number.
13. Look at the ourName example above if you get stuck.
14. In JavaScript, you can store a value in a variable with the assignment operator.
15. This assigns the Number value 5 to myVariable.
16. When JavaScript variables are declared, they have an initial value of undefined.
17. f you do a mathematical operation on an undefined variable your result will be NaN which means "Not a Number".
18. Initialize the three variables a, b, and c with 5, 10, and "I am a" respectively so that they will not be undefined.
19. In JavaScript all variables and function names are case sensitive.
20. Number is a data type in JavaScript which represents numeric data.
------
1. JS rất dễ học.
18.
19. Trong JS tất cả các biến và các tên hàm đều phân biệt hoa thường.
20. Số là một kiểu dữ liệu trong JS, tượng trưng cho dữ liệu số.
1. JavaScript uses the + symbol as an addition operator when placed between two numbers.
2. Increment the number with JS.
3. In programming, data types is an important concept.
4. To be able to operate on variables, it is important to know something about the type.
5.
Bạn đang đọc truyện trên: Truyen247.Pro