Area code 242 is the local telephone area code of The Bahamas.
When in The Bahamas, only the seven-digit number is needed to call. To call from anywhere within North America (the United States, Canada, etc.), simply dial 1-242 followed by the phone number.
To make calls between different Islands in the Bahamas you must also use 1-242.