Home > front end >  I want to readOut a name when i say hi from the localstorage with javascript
I want to readOut a name when i say hi from the localstorage with javascript

Time:02-10

I have try many times but i always get the wrong code
This is the code: If it is not specific tell me to put more code.

function userInfo() {
    let setupInfo = {
        Nombre : setup.querySelectorAll("input")[0].value,
}
let testARR = []
setup.querySelectorAll("input").forEach((e) => {
    testARR.push(e.value)
})
if(testARR.includes("")){
    readOut("Ingrese toda su información porfavor")
} else{
    localStorage.clear()
    localStorage.setItem("tas_setup", JSON.stringify(setupInfo))
    setup.style.display = "none"
    weather(JSON.parse(localStorage.getItem("tas_setup").location))
}

}

if(transcript.includes("Hi")){
        readOut("Hi");
   }

CodePudding user response:

  •  Tags:  
  • Related