ahmed salah

ahmed salah

  • 1k
  • 687
  • 43.3k

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)