Although arrays in JavaScript are objects, there are no good reasons to use the for in loop.
Mimo, że tablice w JavaScript są obiektami, nie ma dobrych powodów, aby używać pętli for in do iteracji po nich.
In JavaScript, most things are objects, from core JavaScript features like strings and arrays to the browser APIs built on top of JavaScript.
W JavaScript większość rzeczy to obiekty, od podstawowych funkcji JavaScript, takich jak ciągi znaków i tablice do interfejsów API przeglądarki na szczycie JavaScript.
This is why you may hear people say that everything in JavaScript is an object.
Object reflection in JavaScript Reflection of objects is not just a curiosity, but also a tool, which we can meet more often than we think.
Refleksja obiektów w JavaScript Refleksja obiektów jest nie tylko ciekawostką, ale i narzędziem z którym możemy się spotkać częściej niż sądzimy.
Today we will focus on numbers and the Number object in JavaScript, take a look closer at calculations and Math object in JavaScript.
Dziś zajmiemy się dokładniej liczbami, obiektem Number, obliczeniami, weźmiemy pod lupę obiekt Math w JavaScript.
Everything can be an object in JavaScript, so this is why manipulating objects is important in JavaScript, even if it can be difficult and time consuming.
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.
Înregistrează-te pentru a accesa mai multe exemple