markdown js_cc_01_operator

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown js_cc_01_operator相关的知识,希望对你有一定的参考价值。

    var num;
    // 加算
    num = 3 + 3; //6
    document.write('<p>3 + 3  =' + num + '</p>');
    // 減算
    num = 5 - 3; //2
    document.write('<p>5 - 3  =' + num + '</p>');
    // 乗算
    num = 2 * 3; //6
    document.write('<p>2 * 3  =' + num + '</p>');
    // 除算
    num = 9 / 3; //3
    document.write('<p>9 / 3  =' + num + '</p>');
    // 剰余
    num = 9 % 5; //4
    document.write('<p>9 % 5  =' + num + '</p>');
js_cc_01_operator
-----------------


A [Pen](https://codepen.io/m-shinkawa/pen/vrOOgB) by [m-shinkawa](https://codepen.io/m-shinkawa) on [CodePen](https://codepen.io).

[License](https://codepen.io/m-shinkawa/pen/vrOOgB/license).

以上是关于markdown js_cc_01_operator的主要内容,如果未能解决你的问题,请参考以下文章

markdown js_cc_01_operator

markdown js_cc_01_compare

markdown js_cc_01_assignment

markdown js_cc_01_practice_operator_intermediate

markdown js_cc_01_practice_operateor_elementary

markdown js_cc_06_apple