<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8"/>
    <title>变量：任务1</title>
    <link rel="stylesheet" href="https://roy-tian.github.io/learning-area/javascript/introduction-to-js-1/tasks/styles.css" />
  </head>

  <body>

    <section class="preview"></section>

  </body>
  <script>
    // 在下方编写代码


    // 不要编写此行以下的代码！

    const section = document.querySelector('section');

    const para1 = document.createElement('p');
    para1.textContent = myName;
    const para2 = document.createElement('p');
    para2.textContent = myAge;
    section.appendChild(para1);
    section.appendChild(para2);
  </script>

</html>
