I want to test how my own function update
works on jsfiddle but when I click the button I get an error that update is not defined.
How can I use my own functions on jsfiddle?
Two problems:
The first problem is that you have some extra text at the end of the script:
})();
The second problem is that you are wrapping the function definitions inside the onDomReady
function.
Change this option to no wrap(head)
and it will work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With