hi,
I am new to javascript learning. I just want to know the detail explanation of this code given in w3schools.
http://www.w3schools.com/js/tryit.asp?filename=tryjs_lightbulb
I know method match() works for finding match. But I can not understand the function. I have knowlege of C. Know if...else, while loop, for loop and the basics.
Please anyone tell me how the given code is working.