8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 023b1cf commit eac494cCopy full SHA for eac494c
JavaScript_Basics/switch_case.js
@@ -213,12 +213,5 @@ switch (true) {
213
214
// 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...
215
// 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
+// 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!
223
224