- Sort Score
- Num 10 results
- Language All
- Labels All
Results 1 - 10 of 227 for test (0.09 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/testMon Feb 23 01:12:21 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/toStringSun Feb 22 01:10:10 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/AssertionsMon Feb 23 01:12:14 GMT 2026 23.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/voidSun Feb 22 01:10:16 GMT 2026 23.7K 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/stickyMon Feb 23 01:12:21 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_escapeSun Feb 22 01:10:16 GMT 2026 23.4K 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_parametersSun Feb 22 01:10:07 GMT 2026 24.5K 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/isNaNSun Feb 22 01:10:10 GMT 2026 23.3K bytes -
ReferenceError: can't access lexical declar...
js function test() { // Accessing the 'const'...using the 'const' keyword } test(); In this example, the imported...developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Cant_access_lexical_declaration_...Mon Feb 23 01:12:15 GMT 2026 21.6K bytes -
SyntaxError: getter and setter for private name...
Mismatched placement js class Test { static set #foo(_) {} get...either both static : js class Test { static set #foo(_) {} static...developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Either_be_both_static_or_non-staticMon Feb 23 01:12:15 GMT 2026 20.8K bytes