i would like to know if you can help me with something

i am writing a javascript script and i want to be able to show/get the javascript code and then display it on the screen browser but i want only odd and even numbers on each side starting with 0

how can i write something like that?