Skip to main content

Code Snippet test

Sample


let run =-1;
let matches = -1;
const otherStats=[];
arr.forEach((val)=>{
    switch(Number(val)){
        case 12100:
            run= 12100;
            break;
        case 200:
            matches = 200;
            break;
        default:
            otherStats.push(val);
    }
});

Comments

Popular posts from this blog

Sample MCQ question

1. What is the full form of the RAM? A) Random answer memory B) Random Access Memory C) Random another memory D) Random aces memory ... Answer is B) The full form of RAM is "Random Access Memory" Show Answer 2. What is the Brain of a Computer? A) ALU B) CU C) CPU D) RAM ... Answer is C) CPU is called brain of the computer. Show Answer 3. Who is the prime minister of India A) Narendra Modi B) Ramnath Konvid C) Amit Shah D) Manmohan Singh ... Answer is A) Narenda Modi is the Prime minister of india. Show Answer

Why do we use it?

  Why do we use it? It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).