Valletta is very close to the ocean. It's basically about 1481 meters from the ocean depending on where you measure to the exact coastline.
If you're driving to a town near the beach or coastline, you could try Gzira.
How far is Salt Lake City from the ocean
How far is Whitefish from the ocean
How far is Shreveport, LA from the ocean
How far is Seward from the ocean
How far is Daytona Beach from the ocean
How far is Annapolis from the ocean
How far is New Braunfels from the ocean
How far is Telluride from the ocean
How far is Spokane from the ocean
How far is Monteverde from the ocean