i want to print counting from 1 onwards using setInterval funcion of jAVASCRIPT but its giving the output as 0 continuously.my code is : `<html>`
`<body>`
`<script>`  //javascript starts
`var x=0;`
`function f()`
`{`
`document.write(x);`
`x++;`
`}`
`setInterval(f,500);` //need to output as 0 then 1 and so on.
`</script>`javascript ends
`</body>`
`</html>`