JavaScript 中的加法运算符 (+) 是什么?

javascriptweb developmentfront end technology

加法运算符用于将两个操作数相加。

示例

您可以尝试运行以下代码来使用加法运算符or −

<html>
   <body>
      <script>
         var a = 33;
         var b = 10;

         document.write("a + b = ");
         result =a + b;
         document.write(result);
      </script>
   </body>
</html>

相关文章


有用资源