KnotText about ECMAScript

(function() {
  'use strict';

let variable = 12;

if(x === 7) {
  for(i++;) {
    i;
  }
}

function doSomething(x) {
  return x*x;
}

const test = {
  prop: 42,
  func: function() {
    return this.prop;
  },
};

test.func();

console.log(Math.random(););

let clock = new Date();

const para = document.querySelector('p');
para.addEventListener('click', updateName);

let para = document.createElement('p');

})();