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 Mystic from the ocean
How far is Deadwood from the ocean
How far is Clearwater from the ocean
How far is Sioux Falls from the ocean
How far is Bellingham from the ocean
How far is Los Olivos from the ocean
How far is Lake Tahoe from the ocean
How far is Hartford from the ocean
How far is New Orleans from the ocean
How far is Perth from the ocean