JavaScript Sets and ranges […]

2021 VietMX 0

everal characters or character classes inside square brackets […] mean to “search for any character among given”. 1. Sets For instance, [eao] means any of the 3 characters: ‘a’, ‘e’, or ‘o’. […]

JavaScript Word boundary: \b

2021 VietMX 0

A word boundary \b is a test, just like ^ and $. When the regexp engine (program module that implements searching for regexps) comes across \b, it checks that the position […]

JavaScript Shadow DOM styling

2021 VietMX 0

Shadow DOM may include both <style> and <link rel=”stylesheet” href=”…”> tags. In the latter case, stylesheets are HTTP-cached, so they are not redownloaded for multiple components that use same […]