JavaScript is hacky language. First I had coded without setTimeout. It took time to understand why the hell loading icon is not showing 🤦♂️. Here showPrintPERTDialog(); blocks UI thread for around 10 seconds. Any better approach ? #javascript#javascripthacks#coding
Do you know?
JavaScript also has a little-known "in" operator that can be used to check if a property exists in an object. But did you know that it can also be used to iterate over the properties of an object?