-2

I came across this (document.createElement)('a');.

How is it different from document.createElement('a');

Rahul Yadav
  • 2,627
  • 5
  • 30
  • 52
  • There's no difference. It's the same as `5+10` vs `(5)+10`. However `(0,document.createElement)(a)` would make a great difference. – georg Nov 02 '19 at 21:04
  • This is a completely different question than the earlier version which was closed as a duplicate. – adiga Nov 02 '19 at 21:17
  • It's absolutely not different, and therefore unnecessary. – Bergi Nov 02 '19 at 21:30

1 Answers1

-1

No difference.

Please read doc for more.

bulkyPanda
  • 151
  • 1
  • 4
  • 2
    That documentation you linked has nothing to do with whether there is a difference or not? – Bergi Nov 02 '19 at 21:32