8

10:56| Author:
Tips Triks

MEnggunakan eksekusi IF ;

Masukan kode berikut ;


    <script type="text/javascript">
    x=5+5;
    document.write(x);
    document.write("<br />");
    x="5"+"5";
    document.write(x);
    document.write("<br />");
    x=5+"5";
    document.write(x);
    document.write("<br />");
    x="5"+5;
    document.write(x);
    document.write("<br />");
    </script>

    <p>The rule is: If you add a number and a string, the result will be a string.</p>

    </body>
    </html>
    hasilnya;
    10
    55
    55
    55
    The rule is: If you add a number and a string, the result will be a string.


Posting Komentar untuk "8"