JavaScript: Difference between revisions

334 bytes added ,  27 September 2019
no edit summary
(Created page with "This page is a mostly about browser-based JavaScript or ECMAScript usage and interaction with the HTML DOM (window). For server and desktop application JavaScript usage, pleas...")
 
No edit summary
Line 5: Line 5:
==Canvas==
==Canvas==
==Video==
==Video==
==Regular Expressions (Regex)==
[https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions Reference]
<syntaxhighlight lang="javascript">
var myRegex = /(\d+),(\d+)/;
var myStr = "124,52";
var match = myStr.match(myRegex);
// Captures
console.log(match[1], match[2]);
console.table(match);
</syntaxhighlight>


=Compilation=
=Compilation=


=Modules=
=Modules=