10 ms·
Its ugly but for global js variables I use Hungarian notation - eg `var gstrHomeUrl`.
by ape4 8y ago
Its ugly but for global js variables I use Hungarian notation - eg `var gstrHomeUrl`.
- joepie91_ 8y agoYou really shouldn't have global variables in the first place, and this misses the point entirely; the type of something isn't what's important, the semantic meaning of it is. The type can be mentally inferred from that. Hungarian notation 'solves' a problem here that doesn't exist in the first place.