31st Mar 2019, 11:06 AM
Piyush Kumar
Piyush Kumar - avatar
6 Respostas
+ 5
// Use "if", "else if" and "else" statement than "switch".
31st Mar 2019, 11:26 AM
program
program - avatar
+ 3
// Correction: var x = new Date().getHours(); - You have not use a "new" keyword to declare this object. - You have forgotten to use "()" for getHours() because it is a function, otherwise, it is considered as a variable.
31st Mar 2019, 11:16 AM
program
program - avatar
31st Mar 2019, 11:25 AM
program
program - avatar
+ 2
Thanks. Let me check
31st Mar 2019, 11:17 AM
Piyush Kumar
Piyush Kumar - avatar
+ 1
It's still not working. Pls help
31st Mar 2019, 11:21 AM
Piyush Kumar
Piyush Kumar - avatar
+ 1
switch case works for matching case, to understand this in a better way, I have done the correction work with switch case take a look... https://code.sololearn.com/WpumIZjI1uos/?ref=app
31st Mar 2019, 5:01 PM
Piyush Raj
Piyush Raj - avatar