Interactive Programming Forums
Login
Register
Home
Questions/Snippets/Exercises
Unanswered
Tags
Ask a Question
Post a Code Snippet
Post an Exercise
Welcome to Interactive Programming Forums, where you can ask questions, receive answers from other members of the community, post code snippets and post exercies.
All categories
Ruby
(3)
Python
(10)
PHP
(7)
Perl
(2)
SQL
(8)
Javascript
(6)
HTML
(20)
CSS
(4)
jQuery
(0)
XML
(3)
Code Snippets
(1)
Exercises
(4)
Other
(9)
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
12 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
12 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
What is wrong in this JavaScript code?
posted
12 years
ago
in
Javascript
by
Heidi Vincent
(
3,970
points)
+10
votes
0
answers
Can I have a code for a preloader on javascript or css
posted
12 years
ago
in
Javascript
by
resila01
(
1,700
points)
+7
votes
1
answer
I cannot get Ques 7 in the JavaScript Function Tutorial to work? Help!
posted
12 years
ago
in
Javascript
by
Heidi Vincent
(
3,970
points)
+11
votes
1
answer
what is java?
posted
12 years
ago
in
Javascript
by
Idalecio Joaquim
(
710
points)
+3
votes
1
answer
How to create a 5x4 (5 rows, 4 columns) table with one of rows having a column span set to 4 (colspan="4")?
posted
12 years
ago
in
HTML
by
yende
(
9,130
points)