JavaScript: Difference between revisions

From David's Wiki
No edit summary
No edit summary
Line 2: Line 2:
For server and desktop application JavaScript usage, please see the [[NodeJS]] page.
For server and desktop application JavaScript usage, please see the [[NodeJS]] page.


=Usage=
==Usage==
==Canvas==
===Canvas===
==Video==
===Video===
==Regular Expressions (Regex)==
===Regular Expressions (Regex)===
[https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions Reference]
[https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions Reference]
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
Line 17: Line 17:
</syntaxhighlight>
</syntaxhighlight>


=Compilation=
==Compilation==


=Modules=
==Modules==

Revision as of 11:50, 1 October 2019

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, please see the NodeJS page.

Usage

Canvas

Video

Regular Expressions (Regex)

Reference

var myRegex = /(\d+),(\d+)/;
var myStr = "124,52";
var match = myStr.match(myRegex);
// Captures
console.log(match[1], match[2]);
console.table(match);

Compilation

Modules