what was the point of this? I saw some kind of menu with options and then after typing in hide, it was gone. It didn’t really seem to do anything special. Does this lead to having some kind of drop display menu bar? I don’t seem to notice it after hitting run.
What is another application of using .hide() ? I’m just curious. Could it be something one would put in code before an official release of a website to make sure certain parts do not show? What else?
The only reason to use .hide() would be defer content that is already there from displaying until such time as it is meant to be exposed.
If you’re working on a project that is still awaiting completion, .hide() would be a way to conceal it, but it would be better if you just use display: none in the CSS and remove that rule when ready to show the new content.