Issue
I have a constant declared in typescript file as mentioned below.
const PASS_SPN_TXT = [ { name: 'PASS V C' },
{ name: 'PASS. T12 C' }];
In actual I want the names as PASS V degree symbol C and PASS.T12 degree symbol C. How to get degree symbol in a string.
Solution
Or use hexadecimal code \xB0 like this:
const PASS_SPN_TXT = [ { name: 'PASS V \xB0C' },
{ name: 'PASS. T12 \xB0C' }];
Answered By - PersyJack
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.