ahmed salah

ahmed salah

  • 1.1k
  • 629
  • 40.1k

what is wrong when executed this statment ?

Jul 5 2022 10:05 PM

I work on Type script i need to ask question what is wrong when executed this statatment

what is error existing on block below when executing it

i need error syntax or logic

 

Const value=Math.random()<0.5?"a":"b"
if(value !=="a")
{
}
else if(value==="b")
{
}

 


Answers (5)