Results 1 to 4 of 4

Thread: A javascript code that starts with "<"

  1. #1
    Join Date
    Oct 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation A javascript code that starts with "<"

    I have a project for school where I have to come up with a syntacticly correct piece of code that starts with "<" in javascript.

    I dont know if there even is one.


    for example:

    var x = 3; //this line starts with a "v"
    <3; //this starts with "<" but is not syntacticly correct and will throw an error - i need any piece of code that starts with "<" AND is syntacticly correct. any help?

  2. #2
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Default

    Can you start with HTML before the JavScript?

  3. #3
    Join Date
    Jul 2009
    Location
    Binus University
    Posts
    472
    Thanks
    78
    Thanked 21 Times in 21 Posts

    Default

    i don't really get your idea, more spesific? Your task is make a page with simple javascript element, or just make a page that extension .JS?
    _____________________

    David Demetrius // davejob
    _____________________

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    We aren't here to do your homework for you. Is that the whole question? If you need help with this sort of thing, please let us help by pointing you in the right direction, rather than having us actually do it for you.

    In this case, I'd suggest thinking about situations where that symbol wouldn't have a functional value.

    I also don't believe this is possible on a single line (it would need to be in context).

    The only exception is the Javascript <script...> tag itself, but that seems irrelevant in this case.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

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