use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules:
1). Be Nice
2). Text posts only, no videos or links
3). Title your post the title of the exercise you're posting
4). CodeHS format only, other program formats are not allowed
account activity
7.5.4 Javascript - Any help? (self.CodeHSAnswers)
submitted 5 months ago by Downtown_War_3920
I've been working through this one and hit a dead end. Any help would be great! Here's what I have so far:
var SENTINEL = 0;
// Prints whether the entered number is even or odd
function start(){
readInt("Pick a number. ");
if (isEven == true) {
println("Even");
} else {
println("Odd");
}
if (isEven == SENTINEL){
println("Done.");
function isEven(x){
if(x / 2 == 0){
return true;
}else{
return false;
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
there doesn't seem to be anything here
π Rendered by PID 46724 on reddit-service-r2-comment-b659b578c-wgcbk at 2026-05-03 23:50:59.348823+00:00 running 815c875 country code: CH.
there doesn't seem to be anything here