Added: 3 years ago
From: thenewboston
Views: 23,995
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (27)

Sign In or Sign Up now to post a comment!
  • you can use it for crapcha

  • spell: "Hello world"

    [_|_______]

    if(!word.match("Hello") || !word.match("world")){

    alert("learn to spell, dumbass!")

    }else{

    alert("You just passed the first grade")

    }

  • Have you made a GetElementById tut yet, because iv herd of that but not known how to use it. Any way, good video!

  • i think this fella is brilliant style is brill!

  • ur videos are real good!

  • ur videos are real good!

  • But what if you want to match the word 'null'?

  • @JakleIsMe word.match(null); ?

  • @Biohazard000Labs But then how would you be able to tell if it found it or not, since it would display null either way?

  • Thank you Bucky,all your vedio is great

  • amazing !

    what is his website ?

  • the example of validation seems highly unnatural - nobody is going to validate by trying to predict misspellings users might make

    a quick mention of simple regular expressions would make it much more enlightening what the point of match is

  • You are a very very good teacher.

  • Your awsome dude!

  • Great Work keep it up.

  • Great for javascript startups. Got solved what I needed. Will watch more. Keep it coming.

  • Still enjouying your videos. they are great. Looking forward to some more intense code

  • I'm not sure. He kind of slurs a bit.

    But I do know that the link on the side does not match any of the sounds he makes.

  • I've been wondering: is there any difference between double and single quotes?

    I use single most of the time, unless there's an apostrophe in the given string, because that screws everything up and I need to switch to double.

    But then if my string has a quoted piece of text in it that causes a problem with double quotes and I have to switch back to single.

    But if I had a string with an apostrophe AND quoted text I guess I would be screwed. Any way around this?

  • i think you put \ [backslash] before the ' or " if you wish to put them into the string.

  • Comment removed

  • such as alert('Don\'t touch that!')

  • This is no difference between using double or single quotes.

    As far as your problem goes, there are two solutions:

    1) use html ascii codes instead of the single/double quote. In other words var x = 'it's hot today'.

    or var x = "she said "Don't talk back!&quot";

    2) use a backslash to escape the quotes. var x = 'it\'s hot in here!';

    or var x= "she said \"Don't talk back!\"";

  • The programming parts are going to be so fun. Hopefully it will teach us to include sound and images.

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more