Category "javascript"

Please why is my code not working,do I need to install any library

Recently started functional programming and all explanations of the pipe and compose using reduce which I have seen are very sketchy. const x = 4 const add2 =

how to support Promises in Internet Explorer 11 using laravel mix?

I'm trying to figure out how to get laravel-mix to convert ES6 javascript code into javascript code Internet Explorer 11 can use. I've setup a brand new laravel

useEffect triggering before useState [duplicate]

I have a form that is supposed to register every input (through useState) and constantly check if that is valid (through useEffect), but that

Is not awaiting for a promise an anti-pattern?

I'm having an application where I have a function which exectues a task, but that task needs to do follow up, but not related to the task, so shouldn't be await

Is there any library which can tell current version of the application is installed in users system in RN

So i want to find current version of applications in React-native so, that i can compare with latest version and send update alert to users.

Why do I get different result when I call a function written in ES5 and the one written in ES6? [duplicate]

When I call object1.getNumber() I get 1 and I expected to get 2. I rewrote the syntax in ES5 and ES6. So why 'this' works differently in ES6 s

How can I separate the JSX mapping logic from the mapped array containing components with props?

I have a component that maps over an array of components that have props passed into them, something along these lines: const Component = (prop0, prop1, prop2)

Ask the user before submitting the form

I have a cshtml page with this code: <form action='@Url.Action("ExportExcel", "Records")' method="post" target="_blank" onsubmit="return exportExcel(), true"

Node-Red How to change the property of a node using a function-node

we are working on a group project and we have ran into a problem. We are creating a music player in Node-Red where when you inject start the music file starts t

How to export a Vue component in word format?

I have a vue template that looks like this- <template> <div id="printContainer"> <componentA></componentA> <div style="page

TypeError: Cannot read properties of null (reading 'addEventListener') javascript

I am trying to add a button but it is showing me this error. here is my html code <div card-container> <template class="mainTemplate">

How do I use an array from main js file for different js file?

I have a task to make a blog thumbnail and blog content from input that looks like this: blog.html This is the thumbnails which is located in the same HTML file

css toggle nailboard effect

The interface shown below toggles if the toggle button is clicked. For now I used only opacity to toggle the visibility but it doesn´t look even close wha

Delete table row with JavaScript?

I am adding some data with JavaScript with no problem but I wanted to delete a row by adding delete button inside the row which I add, but I couldn't do it. The

How to display image name in Ant design <Image.PreviewGroup> component?

<Image.PreviewGroup> <Image width={200} src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg" /> <Ima

How to get data from API in vuejs?

I'm fetching Data from an API using Axios and i'm displaying them as Cards in a Component movie cards, the thing is that i want to be able to click on a single

How do I change the increment/decrement number based on response data?

The backend calls to increment likes depicted by handleLike() and handleLike() functions successfully return the response of containing the number that's been i

d8 Warning: unknown flag --print-ast

When I run d8 --help there is indeed no --print-ast. How can I print AST?

How to return id of a row from v-data-table in VueJs

I'm currently struggling with returning the id of a specific field from each row. I need this id to use it as a parameter for a function that will be used in an

TypeScript how to call function with its name

I am new to typescript, when I type: (dialog is imported from a library) ipcMain.handle("openDialog", (event, method, config) => { return dialog[method](wi