var total = function(price) { var tax = 0.10; return price + price * tax; } document.getElementById('output').textContent = '커피 기계의 가격은 ' + total(8000) + '원(부가세 포함)입니다.';
<section> <p id="output"></p> </section>