Javascript – TypeScript/ES6: what is an ":" in the below context?
I understand below two usages in TS/ES6. Below, a variable myname of type string which is going to be constant(final) is declared. const myname: string = 'abcd'; Below a variable/function initialPath is declared and is assigned a function body using…