1<!DOCTYPE html>
2<html lang="en">
3
4<head>
5 <meta charset="UTF-8">
6 <meta http-equiv="X-UA-Compatible" content="IE=edge">
7 <meta name="viewport" content="width=device-width, initial-scale=1.0">
8 <title>Document</title>
9</head>
10
11<body>
12 <input type="text" id="input">
13<p id="demo"></p>
14</body>
15<script>
16 let a = document.getElementById("input")
17 document.getElementById("demo").innerHTML = a
18</script>
19</html>