How is
    throw
       {
         name: 'type error',
         message: 'provide numeric value'
       };
a incorrect syntax when
    throw{
         name: 'type error',
         message: 'provide numeric value'
       };
Is a correct syntax?
Is it really necessary to attach curly bracket with throw and why?
 
     
    