You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// =============> write your explanation here : Because str has been used(declared) twice. As an input(parameter) to the function(capitalise) and with let. We should used a different variable.
13
12
14
13
// =============> write your new code here :
15
-
/*
14
+
16
15
functioncapitalise(str){
17
-
let cap = `${str[0].toUpperCase()}${str.slice(1)}`;
0 commit comments