Category : web-frontend

the console outputThe handleDoneTask(), I have a clone array of objects todoList, each object has {name, id, done, date}, i was able to update the the done property which was initially false to true using spread operator. but instead of retaining the updated done property as true, it changes to false on a new ID, ..

Read more

I’m putting together an interactive in Javascript/HTML that draws splines connecting two HTML elements. My current approach is to locate the two HTML elements relative to the document using .getBoundingClientRect().left + window.scrollX etc, then create an svg element with position:absolute to cover the two elements and draw the splines within that svg (if there’s a ..

Read more

When I compile it gives this errror: Uncaught TypeError: Cannot read property ‘prototype’ of undefined at eval (config.js?228e:6) at Module../node_modules/bootstrap-vue/esm/utils/config.js (chunk-vendors.js:3322) at __webpack_require__ (app.js:849) at fn (app.js:151) at eval (props.js?cf75:1) at Module../node_modules/bootstrap-vue/esm/utils/props.js (chunk-vendors.js:3598) at __webpack_require__ (app.js:849) at fn (app.js:151) at eval (model.js?58f2:1) at Module../node_modules/bootstrap-vue/esm/utils/model.js (chunk-vendors.js:3514) and my main.js is like this import { createApp } ..

Read more

I’m struggling to find a way to fix this bug. I’m displaying a chart with N(<=7) Yaxis and a datazoom. Works fine most of the time: work successfully But when I touch the slider,it showed an error Uncaught TypeError: Cannot read property ‘type’ of undefined at Object.reset (dataSample.js?fdde:111) at Task.seriesTaskReset [as _reset] (Scheduler.js?7c13:485) at Task._doReset ..

Read more

How to solve this below issue?? It’s happened when I create new routes { path: ‘/games/arched’, load: () => import(/* webpackChunkName: ‘archedSearch’ */ ‘./games/Arched’), exceptionAllowed: true, }, TypeError: action.default is not a function at context.route.load.then.action (/home/go/projects/games/src/router.js:16:1) at process._tickCallback (internal/process/next_tick.js:68:7) Source: Ask Javascript..

Read more

I’m learning JavaScript and there is a question that I can’t understand: Consider the given code: let names = [‘ahmed’, ‘karima’, ‘hamza’,’soad’]; let modifiedNames = names.forEach(name => name+99); The value of modifiedNames here will be? I am printing the variable in the console but it gives me undefined?! Thank you in advance. Source: Ask Javascript ..

Read more

my question: is it efficient to traverse through the DOM to find elements I want to manipulate or should I just use querySelector or getElementById methods to directly get them? in this example, it’s a simple Guess game, and what I did is to select them directly through querySelector (function () { let highscore = ..

Read more