Not sure why I am getting this error. I double checked to see if I was repeating myself or if I potentially had other files open with the same name but that is not the case.
let img = document.querySelector("img")
const button = document.querySelector("button")
let name = document.querySelector("#name")
let lastName = document.querySelector("#lastName")
let location = document.querySelector("#location")
let phone = document.querySelector("#phone")
let email = document.querySelector("#email")
const listOfNames = ["Chase", "Bob", "Kyle", "Jason", "Ryan", "Devin", "Josh", "Mark"]
const listOfLastNames = ["Hudson", "Booker", "Johnson", "Miller", "Jones", "Anderson", "Brown", "Smith"]
const listOfLocations = ["Arizona", "California", "Florida", "Colorado", "Washington", "Texas", "Georgia", "New York"]
const listOfPhoneNumbers = ["225-392-7634", "505-614-4307", "415-429-4932", "802-326-5981", "407-248-7518", "646-423-3519", "864-557-5057", "570-835-9163"]
const listOfEmail = ["[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]"]
button.addEventListener("click", function () {
let randNum = Math.floor(Math.random() * 7)
console.log(randNum)
})