Why do you report an error when you use performance.now () like this?

The

code is not complicated, but I can"t figure out why

var t = performance.now()

(function a() {
  console.log(1)
  setTimeout(a,100)
})()

if the first line var t =. is removed, the code execution is correct. Keep the first line now, and the code will report
TypeError: performance.now (.). Is not a function is there any conflict between
performance.now () and setTimeout ? Thank you in advance ~

Mar.16,2022

when using IIFE , the previous code snippet must have a semicolon at the end. This is the insurance practice

var t = performance.now()

;(function a() {
  console.log(1)
  setTimeout(a,100)
})()
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4bc58-44e62.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4bc58-44e62.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?