File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 55
66
77/*
8- we are creating a variable with (let = nameVariable) but the same time we can not assing
8+ we are creating a variable with (let = nameVariable) but the same time we can not reassign
99 the value in the same line.
10- instead we should call directly the (str = valueAssigned) and with this will Worker.
10+ instead we should call directly the (str = valueAssigned) and with this will Work
1111*/
1212
1313
@@ -30,7 +30,7 @@ console.log(capitalize("alejandra"));
3030
3131/*
3232 In this function we are taking a parameter the string "alejadra" this
33- entry in the function and assigned in the str = takin the firs character[0].toUpperCase()
33+ entry in the function and assigned in the str = taking the firs character[0].toUpperCase()
3434 and using the function upper... to convert this in capital letter.
3535 but we still need the rest of the string and we use the interpolation to concatenate
3636 the rest calling the string from the position 1 with str.slice(1).
You can’t perform that action at this time.
0 commit comments