Skip to content Skip to sidebar Skip to footer

Dot Slash Vs Nothing. What Is The Difference And What's Better To Use?

Just for curiosity. What is the better method to use and what is the difference between them ? vs

Solution 2:

ultimately, there is no difference. They both produce the same link to the same file.

As Quentin just said, it saves you 2 bytes in storage, but I suppose even that doesn't really make a difference.

It just somes down to personal preference/coding style. I never use the ./, never found the use for it. However, people from linux might prefer it, since there it is used to indicate the current directory a lot.

Post a Comment for "Dot Slash Vs Nothing. What Is The Difference And What's Better To Use?"