In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Most people do not understand the knowledge points of this article "JavaScript operators, expressions and keywords", so the editor summarizes the following contents, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "JavaScript operator, expression and keyword usage" article.
JavaScript uses the arithmetic operator (+-* /) to calculate the value:
(7 + 8) * 10
JavaScript uses the assignment operator (=) to assign a value to a variable:
Var x, y
Var x = 7
Var y = 8
JavaScript expression
An expression is a combination of values, variables, and operators, and the result is a value.
6 * 10
Expressions can also contain variable values:
X * 10
Values can be of many types, such as numeric values and strings.
For example, "Bill" + "+" Gates ", calculated as" Bill Gates ":
"Bill" + "+" Gates "
JavaScript keyword
The JavaScript keyword is used to identify the action being performed.
The var keyword tells the browser to create a new variable:
Var x = 7 + 8
Var y = x * 10
JavaScript comment
Not all JavaScript statements are executed.
The code between the double slash / / or / * and * / is considered a comment.
Comments are ignored and not executed:
Var x = 7; / / will execute
/ / var x = 8; will not execute
The above is the content of this article on "how to use JavaScript operators, expressions and keywords". I believe we all have some understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.