completely new to React and failing to understand this error: Compiled with problems:X ERROR [eslint] src/App.js Line 66:16: ‘App’ is not defined no-undef Search for the keywords to learn more about each error. I have found multiple “solutions” for this but none of which I can complete…
Category: Questions
How to keep selected item top of a sidebar menu after reloading a page
I have a scrolling sidebar menu.so when, I select a menu items it should be showed top position of the sidebar. No problem about set active menu. I got it. but I can’t set top position of the sidebar. Please don’t suggest jQuery. rather suggest me vanilla JavaScript here is some code reference Ans…
Image didn’t appear in my angular project
I am learning angular by following steps in a book and there’s a task that demanded creating a product component like in Amazon.For each product, we have an image, the product name, the product release date, the rating component and the number of ratings it has. I followed all steps but the image didn&#…
how to display 3 latitude & longitude (Marker) in one map?
I want to display in google map some location based on my data of longitude and latitude. here is my data: here can see I’ve 3 latitude and longitude. i want to display in google map all the location in one secreen. I’m using react-native-map libraries in my project. So, anyone can help me how to …
How to handle asynchronous call in javascript – print numbers with delay using promises
I am trying to create a function which displays numbers 1 to 10 and prints each number by delay. Like print 1 after 1 second, 2 after 2 seconds upto 10. Also have to print start and end before the number printing and after. Trying to create a promise and use async await to achieve this. However not able to
Array.filter() on object nested array not matching value correctly
I have Two Array with nested objects Now I want to filter out the arrOne in such a way that arrOne id is matched with arrTwo jobId Like this: But it returns [ ] empty array, although if I will rearrange arrTwo in such way like: it will return the matched value. so what’s the problem here & How to
Tab view active and inactive with model value
I just want to know in my ASP.NET MVC application I just created a tab view. For the View I pass some data from the controller. So I need to active and inactive tab according to the value. like an example. Then I need to show tab one active and others, inactive. ( active tab with Green color and Gray
How to add sum of even INDICES in javascript?
This is the official hw question. Write a function named sum_even_index whose parameter is a list/array of decimal numbers. Your function must return the sum of entries at the parameter’s even indicies (e.g., the sum of the entries stored at index 0, index 2, index 4, and so on). Ive been looking for ho…
Javascript Won’t replace image
My Js code below is a quiz game. Each question takes up a full page, which means we have to change all the content every time the user presses the next button. My issue is, i can’t seem to get the image to switch to the next by fully replacing it. In my case the new images just go to
How to bypass undefined (reading ‘src’) using jquery $.each
How do you bypass undefined (reading ‘src’) within a jquery $.each format. I have about 100 products that some have images and some don’t. Using jquery $.ajax I am able to get the response. then I use the response in $.each format as per below The above code works for products with an image …