Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 451 Bytes

File metadata and controls

9 lines (7 loc) · 451 Bytes

Chrome can print live expression on Console Live Demostration

Faster app with JSON.parse()

https://www.youtube.com/watch?v=ff4fgQxPaO0

Why the JSON.parse() is faster than JavaScript literal?

  • JSON.parse accept string only, JS literal will consider the types.
  • Different on how to deal with {. In parse(), { neans aN object ONLY. But JS need work much harder to guess if it's other syntax.