Skip to content

Commit 10a99cc

Browse files
committed
Change the variable name
1 parent 785e8e7 commit 10a99cc

File tree

1 file changed

+2
-2
lines changed
  • Sprint-2/1-key-errors

1 file changed

+2
-2
lines changed

Sprint-2/1-key-errors/0.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
// =============> As I predict it will throw a SyntaxError: Identifier 'str' has already been declared
1616
//because in JavaScript we can not redeclare the same variable in the same scope.
17-
function Capitalise(str){
17+
function capitalise(str){
1818
return `${str[0].toUpperCase()}${str.slice(1)}`;
1919
}
20-
console.log(Capitalise("ahmadHmedan"));
20+
console.log(capitalise("ahmadHmedan"));

0 commit comments

Comments
 (0)