I am learning typescript from past few days and came across a data type called Symbol. But I really did not understand the applications of it.
When I can assign a string to a variable like below:
let str="mystring";
Why should I use -
let str=Symbol("mystring");
What is the advantage of using Symbol in typescript? What is the need of this data type and when to use it? Can someone explain please.