<script> var myh = 1.56; var myw = 55; var mybmi = myw / myh /myh; document.write("身高:"+myh +"</br>"); document.write("體重:"+myw +"</br>"); document.write("計算BMI:"+mybmi +"</br>"); </script>