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
{{ message }}
Repository navigation
Commit baad84d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: Sprint-3/1-key-errors/1.js
+12-8Lines changed: 12 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -5,16 +5,20 @@
5
5
6
6
// Try playing computer with the example to work out what is going on
7
7
8
+
//function convertToPercentage(decimalNumber) {
9
+
// const decimalNumber = 0.5;
10
+
// const percentage = `${decimalNumber * 100}%`;
11
+
12
+
//return percentage;
13
+
//}
14
+
15
+
//console.log(decimalNumber);
16
+
//Because decimalNumber is declared twice it wont work but when i call the function convertToPercentage and pass in 0.5 it will get assigned to the parameter decimalNumber so i need to update the code to reflect this.
0 commit comments