JavaScript Performance Tips: The Hidden Cost of Literals | 8 Hobbies JavaScript Blog

A literal is a textual representation (notation) of a value as it is written in source code. Many people generally associate the concept of literals with performance “cheapness”: A literal always seems to consume very little resource. Is this true? This post discusses the hidden performance cost of literals in JavaScript.


This is a companion discussion topic for the original entry at https://8hob.io/posts/hidden-cost-of-literals/