InnerText vs TextContent Property in Javascript

In this video, you will learn what is the key difference between innertext and textcontent property in javascript.

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="style.css">
        Hello World

        <span>This is hidden</span>

    <button>Click Here</button>

    <script src="script.js"></script>

document.querySelector('button').addEventListener('click', ()=>{
    const result = document.querySelector('div').textContent;


div {
    width: 100%;
    background-color: maroon;
    text-align: center;
    padding: 10px;
    margin-bottom: 15px;
    color: #fff;

span {