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,087
  • 3
  • 20
  • 46
R. Gurung
  • 1,141
  • 1
  • 13
  • 32

0 Answers0