और for loop की तुलना में for of loop काफी easy to understand और weaknesses को improve किया है, by eliminating the counting logic and exit condition. इसके साथ साथ built-in String, Array, array-like objects (e.g., arguments or NodeList), TypedArray, Map, Set, और user-defined iterables भी iterate करता है।įor of loop का main purpose iterable Object (जैसे कि Array) की values को iterate करना है। जबकि for in loop का main purpose Object की enumerable properties keys को Iterate करना है। for/in loop: There is another advanced loop called for/in loop which runs through all the properties of an object. ![]() इस Topic में हम for of loop के बारे में पढ़ेंगे, जिसका main purpose iterable Object (जैसे कि Array) की values को iterate करना है। Means for of loop direct object value से interact कराता है। ![]() If tutorials available on this website are helpful for you, please whitelist this website in your ad blocker□ or Donate to help us ❤️ pay for the web hosting to keep the website running.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |