Quote:
How can I fix this code?
In order to learn JS, you have to read documentation and do some search by yourself.
Multiply do not work for strings, you have to search other way.
Trial and error is how you learn, from your mistakes.
This is a nice tutorial site:
JavaScript Tutorial[
^]