Skip to content

Tag: javascript

Is a JavaScript class an object?

I assume that an ES6 class is an object as “everything” is objects in JavaScript. Is that a correct assumption? Answer From the point of view of Object Oriented Programming class is not an object. It is an abstraction. And every object of that is a concrete instance of that abstraction. From the p…

Why does [][[]] evaluate to undefined?

The expression [][[]] evaluates to undefined in JavaScript. My understanding of this was that the compiler sees the second set of […] and interprets that to be an array subscript operator (because you can’t have two arrays next to each other). So the compiler knows that the inner expression, [], m…

Bootstrap 4 Navbar Collapse doesn’t work

I have a problem with Bootstrap 4 navbar collapse feature. I set it so that the navbar collapse in mobile viewport but instead of collapsing, it shows the items as a vertical list. This is the code: I’m using a customized version of Bootstrap 4 (compiled from scss). I tried to use the standard version a…