JavaScript (Basic) Certificate Questions with solution source code

Publicado em: 16 Junho 2022
no canal de: SUVANSH BADONI
1,607
11

Question 1. Joined Logger

Question 2. Step Counter
you are provided with implementation of a simple counter object
const counter = (function counter(){
let value = 0;
return {
getValue: function(){
return value;
},
changeBy:function(k){
value += k;
},
}
})();
//Your task is to implement a function step Counter that:
takes a single parameter k
retrn a new obj representing a step counter with initial value of 0 with
three methods:
increment(): increments the current value by k
decrement(): decrement the current value by k
getvalue(): returns the current value


Nesta página do site você pode assistir ao vídeo on-line JavaScript (Basic) Certificate Questions with solution source code duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário SUVANSH BADONI 16 Junho 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,607 vezes e gostou 11 espectadores. Boa visualização!