“Quiz JavaScript” Code-Antworten

Quiz JavaScript

YOUR MISSION
Google maps recently discovered a mysterious place last week...
They need you to calculate new data on this unknown archipel...
Do you feel ready to continue this adventure?
 
INSTRUCTIONS :
Return the truncated percentage of islands on the map.

EXEMPLES
[
  [0,0,0,0,0],
  [1,1,0,0,0],
  [1,1,0,0,0],
  [0,0,0,1,1],
]
=>30%
const map=[
  [0,0,0,0,0],
  [1,1,0,0,0],
  [1,1,0,0,0],
  [0,0,0,1,1],
];
function count Islands(map){
  return map.reduce((count Island,row)=>{
    return count Island+row.filter(Boolean).length
  },0);
}
DvLpr KETVMV

So erstellen Sie ein Quiz in JavaScript

There are several steps: 
1. Learn Javascript
2. Solve some questions
3. Read Javascript code
4. Start making some simple questions
5. Get someone's feedback
6. Improve the quality of questions
7... Do it again and again
Himanshu Jangid

Ähnliche Antworten wie “Quiz JavaScript”

Fragen ähnlich wie “Quiz JavaScript”

Weitere verwandte Antworten zu “Quiz JavaScript” auf JavaScript

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen