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

js odd and even number judgment code_javascript skills

WBOY
Release: 2016-05-16 19:14:12
Original
1689 people have browsed it

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
]
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template