Javascipt: Making variable into default?
I have code like this :
<script>
document.write(ab);
</script>
ab
is a variable but it's not declared yet because I want it will be changing by Users. The default result I want it displays is x+y
(for example as). But When Users enter any variable, the result need to be changed. For instance :
<script>
var ab = "The users change code";
</script>
The result will change is The users change code
So, Do you have any idea for my issue. Thank for your help.