Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

javascript

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?"

like image 252
RobertAKARobin Avatar asked May 31 '16 21:05

RobertAKARobin


Video Answer


1 Answers

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".

like image 173
HaukurHaf Avatar answered Oct 18 '22 22:10

HaukurHaf