#JavaScriptArray are a collection of multiple elements, elements are heterogeneous(multiple types of data), and they are accessed by the index.
In JavaScript, arrays are represented in the form of objects, each object has its properties and function.
The length property sets or returns the number of elements in an array.
The push() method adds new items to the end of an array.
What is for...in loop in JavaScript?
The for...in statement iterates a specified variable over all the enumerable properties of an object.
for...in statement always return the name of your user-defined properties in addition to the numeric indexes.
What is for...of loop in JavaScript?
The for...of statement creates a loop Iterating over iterable objects (like Array, Map, Set, and so on), invoking a custom iteration hook with statements to be executed for the value of each distinct property.
The difference between for...in and for...of loop is for...in iterates over property names but for...of iterates over property values.
String objects help you to work with strings. Some example of strings functions are length, toUpperCase(), toLowerCase(), substr(start, length), replace() etc.
Some example of date objects in JavaScript are getMonth(), getDate(), getHours(), getMinutes(), getDay() etc.
The window object represents an open window in a browser. Some of the properties of window objects are closed, history, navigator, location, document etc.
Subscribe for more videos just like this: https://www.youtube.com/c/C4KNOWLEDGE...
Check out some more latest videos:
/ c4knowledgeseekers
TABLE OF CONTENT
0:12 Arrays in JavaScript
2:18 Syntax of Arrays in JavaScript
4:21 length property in JavaScript
6:03 push() in array
7:40 for...in loop in JavaScript
9:24 for...of loop in JavaScript
10:28 How to create an object of other classes in JavaScript?
10:57 String object in JavaScript
15:16 Date object in JavaScript
19:43 Window object in JavaScript
25:43 How to create user-defined objects in JavaScript?
#JavaScriptObjects #C4KNOWLEDGESEEKERS
In questa pagina del sito puoi guardare il video online JAVASCRIPT: Objects: String, Array, Boolean, Number, Math, and Date. Creating User-Defined Objects. della durata di ore minuti seconda in buona qualità , che l'utente ha caricato C4 KNOWLEDGE SEEKERS 01 gennaio 1970, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,397 volte e gli è piaciuto like spettatori. Buona visione!