Skip to content

Author: admin@master

Interesting array with null elements JavaScript behavior [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 years ago. Improve this question I found some interesting behavior and I’m wondering why it’s t…

What is making these subnavs expand?

I’m looking at http://voky.com.ua/showcase/sky-mega-menu/examples/demo-personal.html and I can’t figure out what is making the subnavs expand. For example, hover over “Portfolio” and see the subnav expand. I’ve inspected all the elements around the nav items and I can’t fin…

Javascript findIndex is not a function

I have a json array: function to remove a item from json array When the code is running there is an error: findIndex is not a function error line Answer findIndex is not a prototype method of Array in ECMASCRIPT 262, you might need filter combined with indexOf, instead, it has the advantage of stopping search…

How to place Javascript in a separate file from HTML

I have this code placed in index.html, all together – Javascript and HTML. what I want is to place the JS into another, separate file called “pw.js”. I have created a blank JS file located in folder “js”. I have added it to (head) as well like this <script src=”js/pw.js&…