Skip to content

Category: Questions

Javascript get the max value grouped by another attribute

Hello I have an array that looks like this I wanted to get the maximum score for each “zs_numero” and then multiply all the maximum scores with the coefficient to get a final result So i want to get the values like this: and then make a a variable that calculate all the (zs_coefficient*zs_score) a…

Use Svelte with Stencil components

we want to build an application with svelte but are stuck at using our components that we built with stenciljs. At first it looked like it worked like a charm but as stencil components use the term “slot” and svelte does too, i am reveiving an error when using this component on svelte Element with…

Stuck on extracting information from an array in javascript

I have been able to create the array and average but I am running into roadblocks extracting information from the array. I need to: Loop and find students that failed. Find the student with the highest mark I was trying to add code as below to extract – but it crashes on me. Any assistance would be grea…