0

In console, in both Firefox and Chrome, typing Comment outputs

ƒ Comment() { [native code] }

What is it?

Eric
  • 9,870
  • 14
  • 66
  • 102

1 Answers1

2

It's an interface that creates an HTML comment object when called with new:

const c = new Comment();

console.log(c);
connexo
  • 53,704
  • 14
  • 91
  • 128