Home >Web Front-end >JS Tutorial >js odd and even number judgment code_javascript skills

js odd and even number judgment code_javascript skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 19:14:121716browse

There are two variables a and b
If a=1,3,5,7,9 then b="odd number"
If a=2,4,6,8 then b="even number"
If a="0" then b="zero"


[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute
]
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn