简体   繁体   中英

What does the `dir` in `console.dir` stand for?

I get what it does, and use it all the time. But funnily enough, I've yet to find documentation that says what "DIR" actually means . "Directory" doesn't seem right.

This is not a "What's the difference between console.log() and console.dir() ?" question. It's simply, "What do the letters DIR actually stand for?"

It just means "Directory". Directory is a synonym for index, list, listing, register, catalogue, record, archive, inventory etc. Some of those words might have been a better fit for this function though, like "listing".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM