综合题5_编程题1.html 435 B

1234567891011121314151617181920212223242526
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Document</title>
  7. </head>
  8. <body>
  9. <script>
  10. var x = window.prompt("请输入一个数字");
  11. function foo(X) {
  12. var res = 4 * Math.pow(X, 2) + 3 * X + 2;
  13. console.log(res);
  14. }
  15. foo(x);
  16. </script>
  17. </body>
  18. </html>