I completed the Phone Number Validator code. Although it wasn’t particularly lengthy, it did take some time to unravel. There was a lot of Googling involved. My upcoming project is a Random Background Color Changer, which is relatively minor. The next significant project on my list is to build a Cash Register, which sounds quite challenging.
We’re still waiting for the swamp cooler to be turned on, as the landlord needs to send someone to take care of it. I’m feeling comfortable, but I’ve noticed that if I’m comfortable, everyone else feels too hot. I’ve opened the windows to let the breeze flow through the house. Fortunately, the office and kids’ bedrooms have A.C. units, so those rooms are pleasantly cool. However, I only turn on the office A.C. in the late afternoon before Tommy comes home to cool down the office for him.
Alexis and her three friends are heading to Nebraska from August 8 to 11 for their friend’s wedding. They are splitting the cost of gas and an Airbnb. I worry about her traveling, but I’m glad she is with her friends.
In about three months, I will be embarking on a cruise to Alaska, and I’m thrilled about this upcoming journey. The cruise will span 14 days, allowing for more time at each port. I’ve been delving into Alaska’s history to gain a deeper understanding of the state I’ll be visiting, and I’ve been uncovering some intriguing facts about Alaska as well:
Largest State: Alaska is the largest state in the United States, covering over 663,300 square miles. It’s more than twice the size of Texas.
Longest Coastline: Alaska has the longest coastline of any U.S. state, with over 6,640 miles of coastline along the Pacific and Arctic Oceans.
Mount Denali: Denali, formerly known as Mount McKinley, is the highest peak in North America, standing at 20,310 feet.
Northern Lights: Alaska is one of the best places in the world to see the aurora borealis or northern lights, especially during the winter months.
Midnight Sun: In areas above the Arctic Circle, such as Barrow (now known as Utqiaġvik), the sun does not set for about 83 days in summer. Conversely, during the winter, it doesn’t rise for about 64 days.
Glaciers: Alaska is home to over 100,000 glaciers, including some of the largest and most famous in the world, like the Hubbard Glacier and the Mendenhall Glacier.
Wildlife: Alaska boasts diverse wildlife, including grizzly bears, moose, caribou, wolves, and bald eagles. It’s also a prime location for whale watching.
National Parks: Alaska has more national parks than any other state, with eight, including Denali, Glacier Bay, and Kenai Fjords.
Russian Influence: Alaska was once owned by Russia and was purchased by the United States in 1867 for $7.2 million, a transaction known as “Seward’s Folly” after U.S. Secretary of State William H. Seward.
Iditarod Trail Sled Dog Race: This famous sled dog race covers approximately 1,000 miles from Anchorage to Nome, commemorating the 1925 serum run to Nome.
Alaska Native Cultures: Alaska is home to a rich diversity of indigenous cultures, including the Inuit, Aleut, and various Athabascan tribes, each with their unique traditions and languages.
No Sales Tax: Most parts of Alaska do not have a state sales tax, although some municipalities may impose local taxes.
Volcanoes: Alaska has over 130 active volcanoes, including Mount Redoubt and Mount Spurr, which occasionally erupt.
Fishing Industry: The state is a leader in the fishing industry, particularly for salmon, crab, halibut, and pollock.
Alaska Highway: The Alaska Highway, also known as the Alcan Highway, was constructed during World War II to connect Alaska to the contiguous United States through Canada.
Sparse Population: Despite its size, Alaska has one of the lowest population densities in the U.S., and it has vast areas of uninhabited wilderness.
Dog Mushing: Dog mushing is the official state sport of Alaska, reflecting its historical importance in transportation and culture.
Largest Earthquake: The March 27, 1964 earthquake was the largest in U.S. history (9.2 on the Richter scale) and the second largest recorded worldwide.
JavaScript notes…
——————————-
FreeCodeCamp Phone number validator
** start of html **
** end of html **
** start of javascript **
const input = document.getElementById(“user-input”);
const check = document.getElementById(“check-btn”);
const clear = document.getElementById(“clear-btn”);
const results = document.getElementById(“results-div”);
check.addEventListener(“click”, () => {
const regex = /^(1\s?)?(\(\d{3}\)|\d{3})([\s-]?)\d{3}([\s-]?)\d{4}$/
if (!input.value) {
alert(“Please provide a phone number”);
} else if (regex.test(input.value)) {
results.innerText = `Valid US number: ${input.value}`
} else {
results.innerText = `Invalid US number: ${input.value}`
}
});
clear.addEventListener(“click”, () => {
results.innerText = “”
})
** end of javascript **