JAVASCRIPT: Objects: String, Array, Boolean, Number, Math, and Date. Creating User-Defined Objects.

Published: 01 January 1970
on channel: C4 KNOWLEDGE SEEKERS
1,397
like

#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


On this page of the site you can watch the video online JAVASCRIPT: Objects: String, Array, Boolean, Number, Math, and Date. Creating User-Defined Objects. with a duration of hours minute second in good quality, which was uploaded by the user C4 KNOWLEDGE SEEKERS 01 January 1970, share the link with friends and acquaintances, this video has already been watched 1,397 times on youtube and it was liked by like viewers. Enjoy your viewing!