Results 1 to 2 of 2

Thread: Javascript coding required

Hybrid View

  1. #1
    Join Date
    Jul 2013

    Post Javascript coding required

    MTSU uses course specifications like CSCI 4410-001. Here is a partial list of syntax rules for a MTSU course specification:
     It starts with from 2 to 4 uppercase letters
     Next comes a space
     Next comes a 4-digit number
     Next comes a hyphen (-)
     Next comes a section number which is either a 3 digit number, or the letter H or L followed by a two digit number
    Write a JavaScript function isCourse with one parameter, a string. It will return true if the string represents a MTSU course specification according to the above rules and false otherwise. You must use pattern matching appropriately. To test this function, write a simple HTML file containing a text box that will receive the course name and a submit button. On submit, the isCourse function should be used to determine whether the course is valid or not with an appropriate message in either case.

    Can you please write code explanation to make me understand it better. Thanks

  2. #2
    Join Date
    Mar 2007
    I see we do have a homework situation, this is not the first time that this question has been asked.

    See my reply in the other thread.

    In both cases, you should be paying attention in class !!!
    --> JavaScript Frameworks like JQuery, Angular, Node <--
    ... and please remember to wrap code with forum BBCode tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center