“Kuis Javascript” Kode Jawaban

Kuis 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

cara membuat kuis di 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

Jawaban yang mirip dengan “Kuis Javascript”

Pertanyaan yang mirip dengan “Kuis Javascript”

Lebih banyak jawaban terkait untuk “Kuis Javascript” di JavaScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya