Text + randomchar dosn't work [JavaScript]
- by user558773
<script>
function makeid()
{
var text = "var text = document.write(lastNumber);";
var possible = "*+-/";
for( var i=0; i < 1; i++ )
document.write(lastNumber + possible.charAt(Math.floor(Math.random() * possible.length));
return text;
}
document.write(makeid(1))</script>
How do i make this to type for ex: 23* 45- 13/ and so on.
What is wrong?
It just show me 2 numbers and no char after.