Skip to content

regex works in js but fails in html

I got a regex for matching URIs of YouTube it works well in js but why it fails in html input[pattern] ? Please match the requested format Answer HTML input patterns have an implicit $ at the end, meaning that it expects to match the entire input. You’re not accounting for the &list=RDT4X7Ev7RIZA&am…

Why is axios not returning correctly

I am trying to replace a fetch with axios. I keep getting undefined in my console log. … the commented out fetch is working. I just now added the .json even though axios should not need it. Neither way works. What am I doing wrong? Answer Did you even console.log(response) just to see whats inside of it…

Hide attached child nodes onClick()

I am working on a small D3.js graph and want to hide the connected smaller nodes if the parent larger node was clicked. So far I tried several approaches and to filter the links first to receive the source nodes afterwards might be my best attempt. Unfortunately I receive newLinks.map is not a function error,…