Skip to content

Category: Questions

Getting a error using React – ‘App’ is not defined

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…

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&#…

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