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
En esta página del sitio puede ver el video en línea JavaScript (Basic) Certificate Questions with solution source code de Duración hora minuto segunda en buena calidad , que subió el usuario SUVANSH BADONI 16 junio 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,607 veces y le gustó 11 a los espectadores. Disfruta viendo!