Javascript Function that returns true if a letter?

You could just use a case-insensitive regular expression: If you are supposed to be following the instructions in the comments about greater than and less than comparisons, and you want to check that the input is a string of length 1, then: Expand snippet You’ll notice I didn’t use an if statement. That’s because the … Read more

Angular 2 Hover event

If you want to perform a hover like event on any HTML element, then you can do it like this. HTML Component You should use both mouseenter and mouseleave events in order to fully implement functional hover events in angular 2.

How can I use goto in Javascript?

Absolutely! There is a project called Summer of Goto that allows you use JavaScript at its fullest potential and will revolutionize the way you can write your code. This JavaScript preprocessing tool allows you to create a label and then goto it using this syntax: For example, the example in the question can be written … Read more