Ask coding questions

← Back to all posts
Unknown Bug
MikeJMS8910 (234)

So I am having this bug were when you select homozygous then recessive for the second parent, it displays it as capital when its supposed to be lower case. Here's the link to the code - https://repl.it/@JMSScienceFair/ProjectRemade#index.html and some of the variable that might be the problem are, pb1, lowerA, selectRB, selectDB. This is inside of the java script code(144 - 577). Some of the functions that could be broken would be the enable functions, or solve function, or check function(use ctrl + f).

Comments
hotnewtop
Bookie0 (6407)

Hey,

I don't know any js so I can't review your code and determine if it's an error or a bug -- I'll let someone else do that -- but if you're sure it's a bug or if someone else thinks it's a bug, report it here! : D

Baconman321 (1104)

@Bookie0 I think it's a coding bug, not a repl bug.

Bookie0 (6407)

@Baconman321 yea I wasn't able to look at the code as I don't know js, but just gave the bugs page link in case ¯\_(ツ)_/¯ :)

MikeJMS8910 (234)

@Baconman321 yeah I found it and the problem was that in an if statement i did only 1 = sigh.

Baconman321 (1104)

@MikeJMS8910 If you want to check a value that could be the same but not the same due to capitals, put both values to upper case or to lower case and compare them then (you don't have to convert the actual value, you can just convert them in the if/then statement).