+ 1

Problem with Javascript

Hi I need to known it is possible to custom a variable name like that : let prompt() = prompt() console.log(firstpromptresult); Please help me

1st Dec 2024, 7:53 PM
Nickels (formerly Hi"-")
Nickels (formerly Hi"-") - avatar
2 Answers
+ 6
Nickels (formerly Hi"-") , > issue 1: let prompt() = prompt(); this syntax is invalid. we can not assign a value to a function name (built-in function from javascript) > issue 2: undefined variable console.log(firstpromptresult); the variable `firstpromptresult` is not declared or initialized in the code. >> it would be good idea if you can give us a more helpful description what you are going to achieve. weak questions results in weak answers ...
1st Dec 2024, 8:36 PM
Lothar
Lothar - avatar
0
Lothar i said "it is possible to custom the name of a vale with a prompt()"
2nd Dec 2024, 4:02 PM
Nickels (formerly Hi"-")
Nickels (formerly Hi"-") - avatar