Es können sowohl in JSON als auch in JavaScript Objekten die gleichen Datentypen verwendet werden - Strings, Zahlen, Arrays, Booleans und andere Objekttypen.
You can include the same basic data types inside JSON as you can in a standard JavaScript object - strings, numbers, arrays, booleans, and other object literals.
Da JavaScript keinen echten Integer-Datentyp besitzt, wird für eine interne Konvertierung ein bitweises Oder durch das angefügte |0 durchgeführt.
Note the addition of |0 and the lack of type specifiers. In JavaScript, bitwise operators convert their operands to 32-bit signed integers and give integer results.
IndexedDB unterscheidet sich insofern, dass Sie einen Objektspeicher für einen Datentyp erstellen und in diesem ganz einfach JavaScript-Objekte persistieren.
IndexedDB differs in that you create an Object Store for a type of data and simply persist Javascript Objects to that store.
JavaScript hat keinen expliziten Array-Datentyp, aber es ist möglich, das vordefinierte Array Objekt und dessen Methoden zu verwenden, um mit Arrays zu arbeiten.
JavaScript does not have an explicit array data type. However, you can use the predefined Array object and its methods to work with arrays in your applications.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.