Skip to content

Tag: javascript

How to use streams in Deno?

I am very confused on Deno documentation. It has ReadableStream and WritableStream API, but it doesn’t have a documentation to use it. I want to read from ReadableStream and write to WritableStream, how can I do that in Deno? Answer I want to read from ReadableStream and write to WritableStream, how can I do …

JAVASCRIPT DICTIONARY CREATION DYNAMICALLY

I am back-end developer , and i had to work with Frot-end a little ,but i am stuck in one problem.I am getting data from api and want my data to be stored in this way: Api call looks like this : So , i tried to use map and dict function like this to make dict like above ,but

How to merge a object to a array object in vuejs

I have a api response.data And my component .vue I want merge placeholder object to result after api response Answer Result is actually a list. You can use the destructuring assignment to prepend the placeholder. To use concat you must wrap the placeholder in a list. to achieve the same result in a “mor…

Passing Object from ASP.Net to javascript

I have an ASP.Net Core application. I have a Class with some attributes: and in PageModel of Index.cshtml, I am creating on object of that class and setting it is a property: Now, in my Index.cshtml, I have some default html and then I add a script like this: <script type=”module” src=”~/…

Mounting a Components Library in Vue 3

I am new to Vue.js and trying to migrate a Vue.js 2 migration to Vue.js 3. I have read the Vue.js instructions on how to that carefully; however, the application that I need to migrate contains a Component Library out of Vue.js 2 components that I need to mount in the migrated app aswell. This is the Vue.js 2…