1

What is the role of ! in this javascript equation?

let data = 'hello : world';
data = data!.trim();

I tried looking into the internet and wasn't able to find any satisfactory solution. Trying this in local browser return nothing.

Calvin Nunes
  • 6,376
  • 4
  • 20
  • 48
R. Gurung
  • 1,356
  • 1
  • 14
  • 34

0 Answers0