js基礎課題10

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>js基礎課題10</title>

</head>
<body>
<ul>
<li>3割引+10個につき500円引き</li>
</ul>

<script type="text/javascript">

var ecobag="エコバック";
var tuujou=1700;
var tokubetu=1190;
var ten=10;
var five=500;
var san=30;
var tugou= san*tuujou;
var waribikikei=san*tokubetu-(san/ten*five);

document.write('<h1>','新製品' +ecobag+'のご紹介','<\/h1>');
document.write('<p>','話題の'+ecobag+'を通常価格'+tuujou+'円のところを','<p>');
document.write('<p>','特別価格'+tokubetu+'円でご提供!','<p>');
document.write('<p>','まとめ買いならさらにお得!'+ten+'個につき'+five+'円をお引きします。','</p>');
document.write('<p>',san+'個ご購入なら、通常'+tugou+'円のところが、今なら'+waribikikei+'円!','</p>');
 
</script>

</body>
</html>