click
Hello
• You have two nodes 1) element node p 2) text node Hello • Text node is child node of p element. P element is parent node of the text nodeHello
Insert the link (a) before the p under bodyHello
Hello
Player position x = ${player.x}, y = ${player.y}` }) ES2015 modules
File:
function read(e) { let text = e.target.result console.log(text) } function readFile(file) { var reader = new FileReader(); reader.onload = read reader.readAsText(file) } function handleFileSelect(evt) { let f = evt.target.files[0] readFile(f) } document.getElementById('files').addEventListener('change', handleFileSelect);