<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # TypeScript 算術運算符 > 原文: [https://howtodoinjava.com/typescript/arithmetic-operators/](https://howtodoinjava.com/typescript/arithmetic-operators/) 運算符是代表特定動作的符號。 算術運算符可以與一個或多個值一起使用以產生單個值。 在 TypeScript 中,我們可以使用下面給出的 10 個運算符執行算術運算。 ## 算術運算符 `x + y`,加法,相加兩個操作數。 ```java let x = 10; let y = 20; let z = x + y; console.log( z ); //Output 30 ``` `x - y`,減法,相減兩個操作數。 ```java let x = 10; let y = 20; let z = x - y; console.log( z ); //Output -10 ``` `-x`,取反,翻轉標志,求相反數。 ```java let x = 10; let z = -x; console.log( z ); //Output -10 ``` `x * y`,乘法,相乘兩個運算符。 ```java let x = 10; let y = 20; let z = x * y; console.log( z ); //Output 200 ``` `x ** y`,求冪,將第一個操作數乘以自己,重復第二個操作數指示的次數。 ```java let x = 10; let y = 20; let z = x ** y; console.log( z ); //Output 100000000000000000000 or 1e+20 ``` `x / y`,除法,分子除以分母。 ```java let x = 10; let y = 20; let z = x / y; console.log( z ); //Output 2 ``` `x % y`,模量,返回整數除法后的余數。 ```java let x = 10; let y = 20; let z = x % y; console.log( z ); //Output 10 ``` `x++`,遞增,將整數值增加一。 ```java let x = 10; x++; console.log( x ); //Output 11 ``` `x--`,遞減,將整數值減一。 ```java let x = 10; x--; console.log( x ); //Output 9 ``` 以上是 TypeScript 中使用的**算術運算符**。 將我的問題放在評論部分。 學習愉快!
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看