- Sort Score
- Num 10 results
- Language All
- Labels All
Results 1 - 10 of 227 for test (0.05 seconds)
-
RegExp.prototype.test() - JavaScript | MDN
test(str)); // Expected output: false Syntax js test(str)...Examples ?> Using test() This example tests if "hello" is contained...developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/testFri Mar 06 01:19:00 GMT 2026 17.4K bytes -
Function.prototype.toString() - JavaScript | MDN
function* g() {} test(f); // "function f() {}" test(A); // "class...{ a() {} }" test(g); // "function* g() {}" test((a) => a);...developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/toStringThu Mar 05 01:11:21 GMT 2026 17.4K bytes -
Assertions - JavaScript | MDN
by the word "test", but we do not include "test" in the match...regex = /First(?= test)/g; console.log("First test".match(regex));...developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions/AssertionsFri Mar 06 01:18:54 GMT 2026 23.9K bytes -
Default parameters - JavaScript | MDN
function test(num = 1) { console.log(typeof num); } test(); // 'number'...to 1 too) // test with other falsy values: test(""); // 'string'...developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Default_parametersThu Mar 05 01:11:19 GMT 2026 24.5K bytes -
Backreference: \1, \2 - JavaScript | MDN
test("ac"); // true /\1(a)/.test("a"); // true...match text with different casing from the original text. js /(b)\1/i.test("bB");...developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/BackreferenceThu Mar 05 01:11:27 GMT 2026 22.9K bytes -
void operator - JavaScript | MDN
executed" void function test() { console.log("test function executed");...executed"); }; try { test(); } catch (e) { console.log("test function is...developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/voidThu Mar 05 01:11:27 GMT 2026 23.6K bytes -
RegExp.prototype.sticky - JavaScript | MDN
Because test() is a simple wrapper around exec() , test() would...regex.test(str); // true regex.lastIndex = 5; regex.test(str);...developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/stickyFri Mar 06 01:19:00 GMT 2026 17.7K bytes -
Character escape: \n, \u{...} - JavaScript | MDN
test("\x10"); // true /[\c_]/.test("\x1f"); // true...true /[\c*]/.test("\\"); // true /\c/.test("\\c"); // true /\c0/.test("\\c0");...developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Character_escapeThu Mar 05 01:11:27 GMT 2026 23.4K bytes -
isNaN() - JavaScript | MDN
Parameters value The value to be tested. Return value true if the given...For number values, isNaN() tests if the number is the value NaN...developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isNaNThu Mar 05 01:11:22 GMT 2026 23.3K bytes -
RegExp.prototype.multiline - JavaScript | MDN
test("rugby\nfootball")); // Expected...output: false console.log(regex2.test("rugby\nfootball")); // Expected...developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/multilineFri Mar 06 01:19:00 GMT 2026 16.2K bytes