Output from xsuse on ESP8266.
June 22, 2018
Boolean: 0 bytes
Number: 0 bytes
String `String in ROM`: 0 bytes
String `fromCharCode(32)`: 12 chunk bytes = 12 bytes
String `String in ` + 'RAM': 24 chunk bytes = 24 bytes
Object {}: 0 bytes
Object {x: 1}: 2 slots = 32 bytes