Skip to content

Instantly share code, notes, and snippets.

@eguweb
Last active Nov 15, 2019
Embed
What would you like to do?
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>四則演算</title>
</head>
<body>
<header class="header">
四則演算
</header>
<section class="contents">
<script>
var a = 2+1;
var b = 10-1;
var c = 2*2;
var d = 10/5;
var e = 10%3;
var f = 3;
var g = 3;
document.write(a + "<br>");
document.write(b + "<br>");
document.write(c + "<br>");
document.write(d + "<br>");
document.write(e + "<br>");
document.write(f++ + "<br>");
document.write(++g + "<br>");
</script>
</section>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment