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
Copy file name to clipboardExpand all lines: Sprint-2/1-key-errors/1.js
+8-10Lines changed: 8 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -5,23 +5,21 @@
5
5
6
6
// Try playing computer with the example to work out what is going on
7
7
8
-
functionconvertToPercentage(decimalNumber){
9
-
constdecimal=0.5;
10
-
constpercentage=`${decimalNumber*100}%`;
8
+
// function convertToPercentage(decimalNumber) {
9
+
// const decimal = 0.5;
10
+
// const percentage = `${decimalNumber * 100}%`;
11
11
12
-
returnpercentage;
13
-
}
12
+
// return percentage;
13
+
// }
14
14
15
-
console.log(decimalNumber);
15
+
// console.log(decimalNumber);
16
16
17
17
// =============> Uncaught SyntaxError: Identifier 'decimalNumber' has already been declared - so the same issue as the previous
18
18
//also after changing the decimalNumber to decimal inside the function: Uncaught ReferenceError ReferenceError: decimalNumber is not defined -->in console log we should ask for the function
0 commit comments