id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
File_and_Directory_Entries_built_in_objects/built_in_objects_53_3.txt |
## In this article
* Constructor
* Static properties
* Static methods
* Instance properties
* Instance methods
* Examples
* Specifications
* Browser compatibility
* See also
# Int16Array
## Baseline Widely available
This feature is well established and works across many devices and b... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_42_9.txt | S/docs/Web/JavaScript/Reference/Deprecated_and_obsolete_features)
## In this article
* Try it
* Syntax
* Description
* Examples
* Specifications
* Browser compatibility
* See also
# parseFloat()
The **` parseFloat() ` ** function parses a string argument and returns a
floating point number.
... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_13_0.txt | * Skip to main content
* Skip to search
* Skip to select language
[ MDN Web Docs ](/en-US/) Open main menu
* References [ References ](/en-US/docs/Web)
* [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web)
* [ HTML Structure of content on the web ](/en-US/do... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_55_2.txt | lampedArray ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray)
9. [ ` Int16Array ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array)
10. [ ` Uint16Array ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array)
11. [ ` Int32Array ` ](/en-US/docs/Web/JavaScript/Re... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_3_15.txt | the new variable name are just two
names for the exact same object (and so will always evaluate as [ strictly
equivalent ](/en-
US/docs/Web/JavaScript/Equality_comparisons_and_sameness#strict_equality_using)
). Therefore, if you make any changes at all either to the value of the
original array or to the value of the ne... | |
File_and_Directory_Entries_built_in_objects/read-all-files-of-directory-and-subdirectories-with-recursive-generators-in-javascript-2pbd3_39_0.txt | Collapse Expand
Robert | |
File_and_Directory_Entries_built_in_objects/mastering-nodejs-how-to-delete-files-inside-a-nested-folder5_11_0.txt | Read this story w/o Javascript
Lite | |
File_and_Directory_Entries_built_in_objects/built_in_objects_32_2.txt | (/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array)
26. [ Float64Array ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array)
27. [ Function ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function)
28. [ Generator ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Gener... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_13_7.txt | continue must be inside loop ](/en-US/docs/Web/JavaScript/Reference/Errors/Bad_continue)
27. [ SyntaxError: for-in loop head declarations may not have initializers ](/en-US/docs/Web/JavaScript/Reference/Errors/Invalid_for-in_initializer)
28. [ SyntaxError: function statement requires a name ](/en-US/docs/Web/Ja... | |
File_and_Directory_Entries_built_in_objects/36_17_0.txt | @cbaker6 @uzaysan Thank you so much!
xeoshow December 30, 2021, 9:54am #7 | |
File_and_Directory_Entries_built_in_objects/built_in_objects_33_9.txt | t/Reference/Deprecated_and_obsolete_features)
## In this article
* Try it
* Syntax
* Description
* Examples
* Specifications
* Browser compatibility
* See also
# isNaN()
The **` isNaN() ` ** function determines whether a value is [ ` NaN ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Object... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_32_3.txt | ](/en-US/docs/Web/JavaScript/Reference/Operators/Addition)
3. [ Addition assignment (+=) ](/en-US/docs/Web/JavaScript/Reference/Operators/Addition_assignment)
4. [ Assignment (=) ](/en-US/docs/Web/JavaScript/Reference/Operators/Assignment)
5. [ async function expression ](/en-US/docs/Web/JavaScript/Referenc... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_56_0.txt | * Skip to main content
* Skip to search
* Skip to select language
[ MDN Web Docs ](/en-US/) Open main menu
* References [ References ](/en-US/docs/Web)
* [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web)
* [ HTML Structure of content on the web ](/en-US/do... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_62_0.txt | * Skip to main content
* Skip to search
* Skip to select language
[ MDN Web Docs ](/en-US/) Open main menu
* References [ References ](/en-US/docs/Web)
* [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web)
* [ HTML Structure of content on the web ](/en-US/do... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_35_6.txt | tOwnPropertyNames() ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames)
Returns an array containing the names of all of the given object's **own**
enumerable and non-enumerable properties.
[ ` Object.getOwnPropertySymbols() ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Object... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_53_0.txt | * Skip to main content
* Skip to search
* Skip to select language
[ MDN Web Docs ](/en-US/) Open main menu
* References [ References ](/en-US/docs/Web)
* [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web)
* [ HTML Structure of content on the web ](/en-US/do... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_33_10.txt | are not numbers either:
js
isNaN(NaN); // true
isNaN(undefined); // true
isNaN({}); // true
isNaN(true); // false
isNaN(null); // false
isNaN(37); // false
// Strings
isNaN("37"); // false: "37" is converted to the number 37 which is not NaN
isNaN("37.37"); // f... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_36_0.txt | * Skip to main content
* Skip to search
* Skip to select language
[ MDN Web Docs ](/en-US/) Open main menu
* References [ References ](/en-US/docs/Web)
* [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web)
* [ HTML Structure of content on the web ](/en-US/do... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_47_5.txt | /docs/Web/JavaScript/Reference/Statements/for-await...of)
16. [ for...in ](/en-US/docs/Web/JavaScript/Reference/Statements/for...in)
17. [ for...of ](/en-US/docs/Web/JavaScript/Reference/Statements/for...of)
18. [ function ](/en-US/docs/Web/JavaScript/Reference/Statements/function)
19. [ function* ](/en... | |
File_and_Directory_Entries_built_in_objects/read-all-files-of-directory-and-subdirectories-with-recursive-generators-in-javascript-2pbd3_20_0.txt | Nik
Nik | |
File_and_Directory_Entries_built_in_objects/built_in_objects_21_4.txt | ogical_OR_assignment)
46. [ Multiplication (*) ](/en-US/docs/Web/JavaScript/Reference/Operators/Multiplication)
47. [ Multiplication assignment (*=) ](/en-US/docs/Web/JavaScript/Reference/Operators/Multiplication_assignment)
48. [ new ](/en-US/docs/Web/JavaScript/Reference/Operators/new)
49. [ new.targe... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_11_1.txt | String)
6. Related pages
7. _[ ` EvalError ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError) _
8. [ ` InternalError ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError)
9. [ ` RangeError ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError)
10. [ ` ReferenceEr... | |
File_and_Directory_Entries_built_in_objects/File_and_Directory_Entries_API_4_2.txt | will take you to GitHub to file a new issue.")
[ MDN logo ](/)
Your blueprint for a better internet.
* [ MDN on Mastodon ](https://mozilla.social/@mdn)
* [ MDN on X (formerly Twitter) ](https://twitter.com/mozdevnet)
* [ MDN on GitHub ](https://github.com/mdn/)
* [ MDN Blog RSS Feed ](/en-US/blog/rss.xm... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_3_1.txt | ipt/Reference/Global_Objects/Array/entries)
6. [ ` Array.prototype.every() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every)
7. [ ` Array.prototype.fill() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/fill)
8. [ ` Array.prototype.filter() ` ](/en-US/docs/Web/JavaScript/Ref... | |
File_and_Directory_Entries_built_in_objects/mastering-nodejs-how-to-delete-files-inside-a-nested-folder5_9_0.txt | # nodejs # expressjs # javascript-development # nodejs-express-app #
nested-objects # nodejs-programming-language # node.js-development #
optimization
#### THIS ARTICLE WAS FEATURED IN ... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_41_3.txt | X_VALUE) . Values
higher than that are replaced with the special number constant [ ` Infinity `
](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity) .
Integers can only be represented without loss of precision in the range -2 53
\+ 1 to 2 53 \- 1, inclusive (obtainable via [ ` Number.MIN_SAFE_INTEGER `
]... | |
File_and_Directory_Entries_built_in_objects/read-all-files-of-directory-and-subdirectories-with-recursive-generators-in-javascript-2pbd3_25_0.txt | Collapse Expand
Robert | |
File_and_Directory_Entries_built_in_objects/mastering-nodejs-how-to-delete-files-inside-a-nested-folder5_13_0.txt | visit AWS
# Sponsored | |
File_and_Directory_Entries_built_in_objects/built_in_objects_67_10.txt | ber.isNaN(1n); // false
Additionally, some array methods cannot find ` NaN ` , while others can.
Namely, the index-finding ones ( [ ` indexOf() ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf) , [ `
lastIndexOf() ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/Array/lastIndexOf) ) ... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_50_6.txt | nts in this
iterator and then terminates.
[ ` Iterator.prototype.toArray() ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/Iterator/toArray) Experimental
Creates a new [ ` Array ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/Array) instance populated with
the elements yielded from the iterato... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_39_8.txt | erence/Errors/Deprecated_source_map_pragma)
57. [ TypeError: 'x' is not iterable ](/en-US/docs/Web/JavaScript/Reference/Errors/is_not_iterable)
58. [ TypeError: "x" has no properties ](/en-US/docs/Web/JavaScript/Reference/Errors/No_properties)
59. [ TypeError: "x" is (not) "y" ](/en-US/docs/Web/JavaScript/R... | |
File_and_Directory_Entries_built_in_objects/read-all-files-of-directory-and-subdirectories-with-recursive-generators-in-javascript-2pbd3_43_0.txt | • Oct 29 '23
Dropdown menu | |
File_and_Directory_Entries_built_in_objects/read-all-files-of-directory-and-subdirectories-with-recursive-generators-in-javascript-2pbd3_34_0.txt | I post things so I don’t forget them
* Work | |
File_and_Directory_Entries_built_in_objects/built_in_objects_59_5.txt | 8109e145b8bf6c1ee0%0A*+Document+last+modified%3A+2024-01-02T11%3A59%3A13.000Z%0A%0A%3C%2Fdetails%3E
"This will take you to GitHub to file a new issue.")
[ MDN logo ](/)
Your blueprint for a better internet.
* [ MDN on Mastodon ](https://mozilla.social/@mdn)
* [ MDN on X (formerly Twitter) ](https://twitter.co... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_25_5.txt | onst person = new Proxy({}, validator);
person.age = 100;
console.log(person.age); // 100
person.age = "young"; // Throws an exception
person.age = 300; // Throws an exception
### Manipulating DOM nodes
In this example we use ` Proxy ` to toggle an attribute of two different
elements: so wh... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_7_2.txt | e/Global_Objects/Float32Array)
26. [ Float64Array ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array)
27. [ Function ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function)
28. [ Generator ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator)
29. [ GeneratorFunction ](... | |
File_and_Directory_Entries_built_in_objects/read-all-files-of-directory-and-subdirectories-with-recursive-generators-in-javascript-2pbd3_61_0.txt | Chris Cook
Follow | |
File_and_Directory_Entries_built_in_objects/built_in_objects_26_5.txt | /Web_Workers_API)
* [ Shared Memory â a brief tutorial ](https://github.com/tc39/proposal-ecmascript-sharedmem/blob/main/TUTORIAL.md) in the TC39 ecmascript-sharedmem proposal
* [ A Taste of JavaScript's New Parallel Primitives ](https://hacks.mozilla.org/2016/05/a-taste-of-javascripts-new-parallel-primitives/) ... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_12_3.txt | perators/Addition)
3. [ Addition assignment (+=) ](/en-US/docs/Web/JavaScript/Reference/Operators/Addition_assignment)
4. [ Assignment (=) ](/en-US/docs/Web/JavaScript/Reference/Operators/Assignment)
5. [ async function expression ](/en-US/docs/Web/JavaScript/Reference/Operators/async_function)
6. [ asy... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_0_5.txt | this content
](https://github.com/mdn/content/issues/new?template=page-report.yml&mdn-
url=https%3A%2F%2Fdeveloper.mozilla.org%2Fen-
US%2Fdocs%2FWeb%2FJavaScript%2FReference%2FGlobal_Objects%2FIntl&metadata=%3C%21--+Do+not+make+changes+below+this+line+--%3E%0A%3Cdetails%3E%0A%3Csummary%3EPage+report+details%3C%2Fsumma... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_23_7.txt | (https://www.mozilla.org/en-US/careers/listings/?team=ProdOps)
* [ Advertise with us ](/en-US/advertising)
## Support
* [ Product help ](https://support.mozilla.org/products/mdn-plus)
* [ Report an issue ](/en-US/docs/MDN/Community/Issues)
## Our communities
* [ MDN Community ](/en-US/community)
* [ MDN... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_28_3.txt | ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/Error/Error) constructor.
[ ` Error.prototype.name ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/Error/name)
Represents the name for the type of error. For ` Error.prototype.name ` , the
initial value is ` "Error" ` . Subclasses like [ ` TypeErr... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_6_1.txt | bjects/TypedArray/at)
3. [ ` TypedArray.prototype.copyWithin() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin)
4. [ ` TypedArray.prototype.entries() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/entries)
5. [ ` TypedArray.prototype.every() ` ](/en-US/docs/... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_27_2.txt | oat32Array)
26. [ Float64Array ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array)
27. [ Function ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function)
28. [ Generator ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator)
29. [ GeneratorFunction ](/en-US/docs/Web/Jav... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_59_2.txt | docs/Web/JavaScript/Reference/Global_Objects/Object/isPrototypeOf)
7. [ ` Object.prototype.propertyIsEnumerable() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable)
8. [ ` Object.prototype.toLocaleString() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toLocaleS... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_21_7.txt | or: continue must be inside loop ](/en-US/docs/Web/JavaScript/Reference/Errors/Bad_continue)
27. [ SyntaxError: for-in loop head declarations may not have initializers ](/en-US/docs/Web/JavaScript/Reference/Errors/Invalid_for-in_initializer)
28. [ SyntaxError: function statement requires a name ](/en-US/docs/We... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_65_0.txt | * Skip to main content
* Skip to search
* Skip to select language
[ MDN Web Docs ](/en-US/) Open main menu
* References [ References ](/en-US/docs/Web)
* [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web)
* [ HTML Structure of content on the web ](/en-US/do... | |
File_and_Directory_Entries_built_in_objects/mastering-nodejs-how-to-delete-files-inside-a-nested-folder5_24_0.txt | Join HackerNoon
Latest technology trends. Customized Experience. Curated Stories. Publish Your
Ideas | |
File_and_Directory_Entries_built_in_objects/built_in_objects_15_0.txt | * Skip to main content
* Skip to search
* Skip to select language
[ MDN Web Docs ](/en-US/) Open main menu
* References [ References ](/en-US/docs/Web)
* [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web)
* [ HTML Structure of content on the web ](/en-US/do... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_60_10.txt | t/Reference/Global_Objects/URIError)
* [ ` InternalError ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError) Non-standard
### Numbers and dates
These are the base objects representing numbers, dates, and mathematical
calculations.
* [ ` Number ` ](/en-US/docs/Web/JavaScript/Reference/Global_... | |
File_and_Directory_Entries_built_in_objects/working-with-folders-in-nodejs7_7_0.txt | User Journey Memory Live Debugging Poor Performance Flame Graphs
# Working with folders in Node.js | |
File_and_Directory_Entries_built_in_objects/built_in_objects_21_5.txt | ait...of ](/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of)
16. [ for...in ](/en-US/docs/Web/JavaScript/Reference/Statements/for...in)
17. [ for...of ](/en-US/docs/Web/JavaScript/Reference/Statements/for...of)
18. [ function ](/en-US/docs/Web/JavaScript/Reference/Statements/function)
19. ... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_67_1.txt | lar_expressions)
10. [ Indexed collections ](/en-US/docs/Web/JavaScript/Guide/Indexed_collections)
11. [ Keyed collections ](/en-US/docs/Web/JavaScript/Guide/Keyed_collections)
12. [ Working with objects ](/en-US/docs/Web/JavaScript/Guide/Working_with_objects)
13. [ Using classes ](/en-US/docs/Web/JavaS... | |
File_and_Directory_Entries_built_in_objects/read-all-files-of-directory-and-subdirectories-with-recursive-generators-in-javascript-2pbd3_52_0.txt | Here is an example that read all files and sub-directores start with directory
` test1 ` : Sandbox
You can copy the index.js file to a local file and then run ` node index `
from the command line in the directory where this file is stored. You must
change the ` pathToDir ` to the path of your flash drive. | |
File_and_Directory_Entries_built_in_objects/built_in_objects_9_1.txt | bjects/Promise/reject)
8. [ ` Promise.resolve() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/resolve)
9. [ ` Promise.prototype.then() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then)
10. [ ` Promise.withResolvers() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objec... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_30_7.txt | 1 ` â ` 31 ` ) for the specified date
according to local time.
[ ` Date.prototype.getDay() ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/Date/getDay)
Returns the day of the week ( ` 0 ` â ` 6 ` ) for the specified date
according to local time.
[ ` Date.prototype.getFullYear() ` ](/en-
US/docs/W... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_34_2.txt | ee also
# SyntaxError
The **` SyntaxError ` ** object represents an error when trying to interpret
syntactically invalid code. It is thrown when the JavaScript engine encounters
tokens or token order that does not conform to the syntax of the language when
parsing code.
` SyntaxError ` is a [ serializable object ]... | |
File_and_Directory_Entries_built_in_objects/working-with-folders-in-nodejs7_25_0.txt | ## Remove a folder
Use ` fs.rmdir() ` or ` fs.rmdirSync() ` or ` fsPromises.rmdir() ` to remove a
folder. | |
File_and_Directory_Entries_built_in_objects/built_in_objects_66_4.txt | /multipage/indexed-
collections.html#table-49)
## Browser compatibility
BCD tables only load in the browser with JavaScript enabled. Enable
JavaScript to view data.
## See also
* [ Polyfill of ` Uint8ClampedArray ` in ` core-js ` ](https://github.com/zloirock/core-js#ecmascript-typed-arrays)
* [ JavaScri... | |
File_and_Directory_Entries_built_in_objects/read-all-files-of-directory-and-subdirectories-with-recursive-generators-in-javascript-2pbd3_26_0.txt | Robert
Robert | |
File_and_Directory_Entries_built_in_objects/built_in_objects_30_9.txt | ts/Date/toISOString) .
Intended for use by [ ` JSON.stringify() ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) .
[ ` Date.prototype.toLocaleDateString() ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString)
Returns a string with a locality sensitive represen... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_69_3.txt | ven one that does garbage collection, is not required to call cleanup callbacks. When and whether it does so is entirely down to the implementation of the JavaScript engine. When a registered object is reclaimed, any cleanup callbacks for it may be called then, or some time later, or not at all.
* It's likely that m... | |
File_and_Directory_Entries_built_in_objects/working-with-folders-in-nodejs7_33_0.txt | 1. Navigate to Home
2. Manipulating Files
3. Working with folders in Node.js
| |
File_and_Directory_Entries_built_in_objects/built_in_objects_20_0.txt | * Skip to main content
* Skip to search
* Skip to select language
[ MDN Web Docs ](/en-US/) Open main menu
* References [ References ](/en-US/docs/Web)
* [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web)
* [ HTML Structure of content on the web ](/en-US/do... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_68_0.txt | * Skip to main content
* Skip to search
* Skip to select language
[ MDN Web Docs ](/en-US/) Open main menu
* References [ References ](/en-US/docs/Web)
* [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web)
* [ HTML Structure of content on the web ](/en-US/do... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_24_0.txt | * Skip to main content
* Skip to search
* Skip to select language
[ MDN Web Docs ](/en-US/) Open main menu
* References [ References ](/en-US/docs/Web)
* [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web)
* [ HTML Structure of content on the web ](/en-US/do... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_30_4.txt | eb/JavaScript/Reference/Global_Objects/Date/getUTCFullYear) | [ ` setUTCFullYear() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCFullYear)
Month | [ ` getMonth() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getMonth) | [ ` setMonth() ` ](/en-US/docs/Web/JavaScript/Reference/Gl... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_69_2.txt |
US/docs/Web/JavaScript/Reference/Global_Objects/Symbol#shared_symbols_in_the_global_symbol_registry)
are garbage collectable, so they can be registered in a ` FinalizationRegistry
` object as the target or the token.
If ` target ` is reclaimed, your cleanup callback may be called at some point
with the _held value_ y... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_56_2.txt | ility
* See also
# ReferenceError
The **` ReferenceError ` ** object represents an error when a variable that
doesn't exist (or hasn't yet been initialized) in the current scope is
referenced.
` ReferenceError ` is a [ serializable object ](/en-
US/docs/Glossary/Serializable_object) , so it can be cloned with [... | |
File_and_Directory_Entries_built_in_objects/mastering-nodejs-how-to-delete-files-inside-a-nested-folder5_15_0.txt | Nov 09, 55297
# expressjs | |
File_and_Directory_Entries_built_in_objects/read-all-files-of-directory-and-subdirectories-with-recursive-generators-in-javascript-2pbd3_10_0.txt | Let's start by taking a look at the code:
import fs from 'fs';
import path from 'path';
export function* readAllFiles(dir: string): Generator<string> {
const files = fs.readdirSync(dir, { withFileTypes: true });
for (const file of files) {
if (file.isDirectory()) {... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_14_8.txt | ether all elements in the array pass the test provided by a function.
See also [ ` Array.prototype.every() ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/Array/every) .
[ ` TypedArray.prototype.fill() ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill)
Fills all the elements of a... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_10_0.txt | * Skip to main content
* Skip to search
* Skip to select language
[ MDN Web Docs ](/en-US/) Open main menu
* References [ References ](/en-US/docs/Web)
* [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web)
* [ HTML Structure of content on the web ](/en-US/do... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_3_4.txt | Web/JavaScript/Reference/Global_Objects/Array/length) property when
they're called.
Other methods (e.g., [ ` push() ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/Array/push) , [ ` splice() `
](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice) , etc.)
also result in updates to an array's [ ` ... | |
File_and_Directory_Entries_built_in_objects/File_and_Directory_Entries_API_3_0.txt | * Skip to main content
* Skip to search
* Skip to select language
[ MDN Web Docs ](/en-US/) Open main menu
* References [ References ](/en-US/docs/Web)
* [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web)
* [ HTML Structure of content on the web ](/en-US/do... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_2_4.txt |
* [ Legal ](https://www.mozilla.org/about/legal/terms/mozilla)
* [ Community Participation Guidelines ](https://www.mozilla.org/about/governance/policies/participation/)
Visit [ Mozilla Corporationâs ](https://www.mozilla.org) not-for-profit
parent, the [ Mozilla Foundation ](https://foundation.mozilla.org/) ... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_13_3.txt | ators/Addition)
3. [ Addition assignment (+=) ](/en-US/docs/Web/JavaScript/Reference/Operators/Addition_assignment)
4. [ Assignment (=) ](/en-US/docs/Web/JavaScript/Reference/Operators/Assignment)
5. [ async function expression ](/en-US/docs/Web/JavaScript/Reference/Operators/async_function)
6. [ async ... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_66_2.txt | ray)
8. _[ ` Uint8ClampedArray ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray) _
9. [ ` Int16Array ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array)
10. [ ` Uint16Array ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array)
11. [ ` Int32Array ` ](/en-US... | |
File_and_Directory_Entries_built_in_objects/read-all-files-of-directory-and-subdirectories-with-recursive-generators-in-javascript-2pbd3_23_0.txt | Dropdown menu
* Copy link
* * Hide
* * * | |
File_and_Directory_Entries_built_in_objects/File_and_Directory_Entries_API_3_1.txt | oke the user, for example by
installing a Chrome extension. The relevant Chrome API can be found [ here
](https://developer.chrome.com/docs/extensions/reference/fileSystem/) .
## Basic concepts
There are two ways to get access to a ` FileSystem ` object:
1. You can directly ask for one representing a sandboxed fi... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_43_3.txt | en included in a string) are necessary.
For example, the following are equivalent:
js
const re = /\w+/;
// OR
const re = new RegExp("\\w+");
### Special handling for regexes
**Note:** Whether something is a "regex" can be [ duck-typed
](https://en.wikipedia.org/wiki/Duck_typing) . It do... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_63_7.txt | take you
to our contribution guidelines on GitHub.") .
This page was last modified on Mar 11, 2024 by [ MDN contributors ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/Map/contributors.txt) .
[ View this page on GitHub
](https://github.com/mdn/content/blob/main/files/en-
us/web/javascript/reference/global... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_47_0.txt | * Skip to main content
* Skip to search
* Skip to select language
[ MDN Web Docs ](/en-US/) Open main menu
* References [ References ](/en-US/docs/Web)
* [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web)
* [ HTML Structure of content on the web ](/en-US/do... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_13_6.txt | s/Web/JavaScript/Reference/Regular_expressions/Named_capturing_group)
14. [ Non-capturing group: (?:...) ](/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Non-capturing_group)
15. [ Quantifier: *, +, ?, {n}, {n,}, {n,m} ](/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Quantifier)
16. [ Un... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_63_2.txt | owser
versions. Itâs been available across browsers since July 2015 .
* [ Learn more ](/en-US/blog/baseline-evolution-on-mdn/)
* See full compatibility
* [ Report feedback ](https://survey.alchemer.com/s3/7634825/MDN-baseline-feedback?page=%2Fen-US%2Fdocs%2FWeb%2FJavaScript%2FReference%2FGlobal_Objects%2FMa... | |
File_and_Directory_Entries_built_in_objects/36_5_0.txt | Focus on creating unique & engaging apps on any platform. We take care of
everything else your app needs, from the core of your app to analytics and
push notifications.
For example, I designed an image folder at /usr/local/parse-server-
example/public/images, and I want to save all the images there (and subfolders
by ... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_10_5.txt | s/Web/JavaScript/Reference/Statements/for-await...of)
16. [ for...in ](/en-US/docs/Web/JavaScript/Reference/Statements/for...in)
17. [ for...of ](/en-US/docs/Web/JavaScript/Reference/Statements/for...of)
18. [ function ](/en-US/docs/Web/JavaScript/Reference/Statements/function)
19. [ function* ](/en-US/... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_4_5.txt | use in new websites.
| |
File_and_Directory_Entries_built_in_objects/built_in_objects_54_1.txt | /Web/JavaScript/Reference/Global_Objects/Function/length)
5. [ ` Function: name ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name)
6. [ ` Function: prototype ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/prototype)
9. Methods
1. [ ` Function.prototype[@@hasInstance]... | |
File_and_Directory_Entries_built_in_objects/read-all-files-of-directory-and-subdirectories-with-recursive-generators-in-javascript-2pbd3_17_0.txt | Personal Trusted User
Create template | |
File_and_Directory_Entries_built_in_objects/built_in_objects_8_0.txt | * Skip to main content
* Skip to search
* Skip to select language
[ MDN Web Docs ](/en-US/) Open main menu
* References [ References ](/en-US/docs/Web)
* [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web)
* [ HTML Structure of content on the web ](/en-US/do... | |
File_and_Directory_Entries_built_in_objects/mastering-nodejs-how-to-delete-files-inside-a-nested-folder5_17_0.txt | Jul 25, 52952
# serverless | |
File_and_Directory_Entries_built_in_objects/built_in_objects_9_0.txt | * Skip to main content
* Skip to search
* Skip to select language
[ MDN Web Docs ](/en-US/) Open main menu
* References [ References ](/en-US/docs/Web)
* [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web)
* [ HTML Structure of content on the web ](/en-US/do... | |
File_and_Directory_Entries_built_in_objects/working-with-folders-in-nodejs7_31_0.txt | 3 min read
Contribute
Edit this page
Table of Contents | |
File_and_Directory_Entries_built_in_objects/built_in_objects_1_10.txt | ` - `
).
If the radix value (coerced if necessary) is not in range [2, 36] (inclusive)
` parseInt ` returns ` NaN ` .
For radices above ` 10 ` , letters of the English alphabet indicate numerals
greater than ` 9 ` . For example, for hexadecimal numbers (base ` 16 ` ), ` A
` through ` F ` are used. The letters are ca... | |
File_and_Directory_Entries_built_in_objects/read-all-files-of-directory-and-subdirectories-with-recursive-generators-in-javascript-2pbd3_15_0.txt | We can simply use a ` for..of ` loop to iterate through the generator object
and print each file path to the console.
Using a recursive generator function to read all the files in a directory and
its subdirectories has several benefits over other approaches. Instead of
pushing all file paths into an array, the generat... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_37_4.txt | log(thing);
// Thing {someProperty: "foo"}
thing.showPublic();
// "foo"
thing.showPrivate();
// 1
This is roughly equivalent to the following, using [ private fields ](/en-
US/docs/Web/JavaScript/Reference/Classes/Private_properties) :
js
class Thing {
static #c... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_30_10.txt | const [hour, minutes, seconds] = [
date.getHours(),
date.getMinutes(),
date.getSeconds(),
];
// [16, 45, 30]
### Interpretation of two-digit years
` new Date() ` exhibits legacy undesirable, inconsistent behavior with two-
digit year values; specifically, when a ` new Date() ` call ... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_22_1.txt | ference/Global_Objects/TypedArray/at)
3. [ ` TypedArray.prototype.copyWithin() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin)
4. [ ` TypedArray.prototype.entries() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/entries)
5. [ ` TypedArray.prototype.every() ... | |
File_and_Directory_Entries_built_in_objects/built_in_objects_57_0.txt | * Skip to main content
* Skip to search
* Skip to select language
[ MDN Web Docs ](/en-US/) Open main menu
* References [ References ](/en-US/docs/Web)
* [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web)
* [ HTML Structure of content on the web ](/en-US/do... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.