Welcome to Interactive Programming Forums, where you can ask questions, receive answers from other members of the community, post code snippets and post exercies.

there is a bug with RegExp exam in Javascript

+8 votes
when ever i run a code in RegExp it switch to the next Exam without verifying my code is correct or not
posted 5 years ago in Javascript by manlink2000 (5,280 points)

1 Answer

0 votes
Sorry for the delay in replying.
Can you tell me the exercise number or the title?
I'd be glad to take a look and fix the issue if there's a bug.

Thanks,
answered 5 years ago by codeadmin (113,880 points)
Exercise number 1 & 2 in RegExp section in javascript were this bug is most common ...thanks
Hi, Thanks for the info.
Please verify the questions for me.

#1
var myDate = new Date();
var year=myDate.getFullYear();
if(year) document.write(year);
else document.write("error!");

Result: 2012

#2
var my_score=100;
if(my_score > 90 && my_score <= 100)
document.write('A');
else if(my_score > 80 && my_score <= 90)
document.write('B');
else if(my_score > 70 && my_score <= 80)
document.write('C');
else document.write('Failed');

Result: A

Are these correct?

If not, please send me an email to code@he.net with some screenshots so I can further assist you.

Thank you! :)

Related questions

+6 votes
1 answer
posted 5 years ago in Javascript by Heidi Vincent (3,970 points)
+10 votes
0 answers
posted 5 years ago in Javascript by resila01 (1,700 points)
+7 votes
1 answer
posted 5 years ago in Javascript by Heidi Vincent (3,970 points)
+11 votes
1 answer
posted 5 years ago in Javascript by Idalecio Joaquim (710 points)