while I am working on react, I got syntax error on this line:
return str?.length > n ? str.substr(0, n - 1) + "..." : str;enter image description here
I strongly believe there is nothing wrong with the syntax. Please help me out with this.
Thank you