Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

finalGrade % 5 && <38

 let finalGrade = [];
    
    for (let i = 0; i < grades.length; i++) {
    

        if (grades[i] <38 || grades[i] % 5 <=2 )  {
            finalGrade[i] = grades[i];
        }
        else {
            for(let j=0; j<2;j++) {
                grades[i] += 1
                if (grades[i] % 5 === 0 ){
                    finalGrade[i] = grades[i];
                    break
                }
            }

        }
    }
   
return finalGrade;
Comment

PREVIOUS NEXT
Code Example
Javascript :: illegal start of expression spring boot 
Javascript :: js how to find not unic values in array 
Javascript :: javascript remove null object 
Javascript :: hide show jquery 
Javascript :: add html symbols with javascript 
Javascript :: can not find static files on multilevel routes in express js 
Javascript :: generator object loop over length 
Javascript :: set prop as optional in react flow 
Javascript :: how to refrence schema in my mongoose schema with populate function 
Javascript :: jquery meta characters escape 
Javascript :: array.includes is not a function react 
Javascript :: javascript set default button form 
Javascript :: How to make a json call to a URL 
Javascript :: update on zoom is not working google-map-react 
Javascript :: include nested childs 
Javascript :: javascript test https 
Javascript :: formulaire sauvegarde local storage jquery 
Javascript :: a method that will do something to each of the values in the array 
Javascript :: ngclass click change toggle 
Javascript :: currentContract.transferFrom is not a function 
Javascript :: How to Define a Function using Function Declaration in javascript 
Javascript :: JavaScript combining rows of multiple datasets 
Javascript :: remove all elements contained in another array 
Javascript :: React Native Component with Random Hexa 
Javascript :: invalid json text mysql 
Javascript :: unreachable code detected javascript 
Javascript :: prisma nested create 
Javascript :: Parsing error: JSX value should be either an expression or a quoted JSX text. 
Javascript :: rpushx redis 
Javascript :: javascript change favicon dynamicly 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =