I am new to javascript. I am creating a text adventure. I am trying to write a function to take a given parameter, and use the .toLowerCase and return it as the same variable. I think I have the general idea to do it, but I just can not get it to work. Thanks!
function lowercase(a){
    return a.toLowerCase();
}
var alive = 1;
while(alive == 1){
    var name = prompt("What is your name?");
    lowercase(name);
    document.write("Hello " + name + "!\n");
    break;
}
 
     
     
     
     
    