listing directories alone

ls lists all files and sub directories in the current directory
but how to list only the sub directories and not the files?

Just some options:

ls -p | grep "/$"

ls -lp | grep "/$"

ls -l | grep "^d"

I think this question was already answered many times on these forums, try the search function.

Or even ls -d */.