Skip to content

Commit eac494c

Browse files
authored
Update switch_case.js
1 parent 023b1cf commit eac494c

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

JavaScript_Basics/switch_case.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,5 @@ switch (true) {
213213

214214
// Create a switch statement to convert abriged bytes values (Kb,Mb,Gb,Tb ) to their complete values in bytes, example : 1K = 1 * 1024, 1M = 1 * 1024 * 1024, 1G = 1 * 1024 * 1024 * 1024 , etc...
215215
// how to convert bytes : 1Kb = 1024 b, 1Mb = 1024 Kb, 1Gb = 1024 Mb, 1 Tb = 1024 Gb.
216-
// Hint: the switch will test the value of 'unit', and will have to multiply the var "quantity" by the right number before putting it in the var "result". don't forget to add a default response!
217-
218-
var quantity = 2;
219-
var unit = "Kb";
220-
var result;
221-
222-
//put your Switch here
216+
// Hint: the switch will test the value of 'unit', and will have to multiply the var "quantity" by the right number before putting it in the var "result". don't forget to add a default response!
223217

224-

0 commit comments

Comments
 (0)