+ 5
Please help me find JS bug!!!
I am trying to make a a code generator. My problem is that I have an error. A button calls function, which promts for a input. The input is processed and the output is shown on a Textarea using GetElemtById. Please help me!! https://code.sololearn.com/W2qhGYKBYExo/?ref=app
4 odpowiedzi
+ 9
func -> function
// No such syntax in JS
add function for image(), iframe(), youtube(), HH()
I suppose the variable final is what you type in prompt part
Hope this helpful! Programming is fun! 😄🤗
https://code.sololearn.com/WXI6ItqK6DRK/?ref=app
+ 1
func must be function and variable final does not exist
+ 1
You have written `func link()` instead of `function link()` in the code. Also, on line 4, you have written an unknown variable name `final`, which should be `almost` (assigned on line 3)
+ 1
CodeWarrior 𝕮𝖔𝖉𝖊𝖂𝖆𝖗𝖗𝖎𝖔𝖗 , first in JS part change func to function. There are some other functions in Html part you placed as events that are not defined in JS. Variable final doesn't exist, also you are using JQuery, but you don't get the link in Html to use it.