Skip to content

How make dynamic breadcrumbs in vue.js?

I would like to have a dynamic breadcrumbs based on where I clicked on a category but I get an error that says my variable is undefined: TypeError: Cannot read properties of undefined (reading ‘homeMenu’). Yet in my getHomeCategory function, the console.log of homeCategory displays Perma’Thè…

Assigning BigInt stores wrong number (number+1)

I want to define a BigInt number in JavaScript. But when I assign it, the wrong number is stored. In fact 1 is added to the number when storing. So the number stored is 1152921504606846976, but it should be 11529215046068469765. Why is that? Answer Converting a Number to a BigInt can’t create bits that …

jest is failing to find `bota` and `atob`

Creating a jest test like: fails with however, node does define btoa as of node 16, and so the following: correctly outputs YWFh. How can I configure jest to get this test to pass? Clearly something is happening in the jest test runner to not execute in the current node environment, or otherwise is stripping …