Forum : Java Script Assignment 5
Brief description  about Online courses   join in Online courses
View Rimpu  Singla 's Profile

Java Script Assignment 5

plz tell me this assignment

i not understand is assignment
plz solve me----

rs.singla1985@gmail.com
rs.singla2009@rediffmail.com


*************************
Write a JavaScript code,
- for guessing any number between 1 to 20. run the loop till you not get correct number. Use prompt() box to input number from user.
- to find a number of unique letters in string. (Eg. if keyword is unique, Unique count will be '4')
- so that numbers appear in following format,



for n=5. Input 'n' value from user.
- to create a redirection script based on day of the week.
- that reads the date of a day in one textbox, the month in a second textbox and the year in a third textbox. After submitting the form, it should display the complete date, including the correct extension on the day number ('st', 'nd', 'rd' or 'th'). Example : 2 April 1999 will produce: 'Today is 2nd of April, 1999.'
****************************
Asked by Rimpu Singla | Sep 23, 2010 |  Reply now
Replies (3)
View rimpu singla 's Profile
for guessing any number between 1 to 20. run the loop till you not get correct number. Use prompt() box to input number from user.



function funprompt()
{
do
{
var i= prompt("Enter your Namber (0 to Exit)", "")
document.write(i + "<br>")
if(i==0)
{
break;
}
i++;
} while (i > 0)
}
Sep 23, 2010
View rimpu singla 's Profile
- for guessing any number between 1 to 20. run the loop till you not get correct number. Use prompt() box to input number from user.



function funprompt()
{
do
{
var i= prompt("Enter your Namber (0 to Exit)", "")
document.write(i + "<br>")
if(i==0)
{
break;
}
i++;
} while (i > 0)
}
Sep 23, 2010
View teacher siliconindia 's Profile
Hi Rimpu,

What u didn't understand... the questions or u didn't get solution for those questions.. where u are facing problem.. let me know. post the code how u approached the question.?
Sep 23, 2010