While following the Gulp section on the TypeScript home page.
// File name: src/main.ts
function hello(compiler: string) {
console.log(`Hello from ${compiler}`);
}
hello('TypeScript');
On the example code, there is a template string as shown above, and change this code as follows.
// File name: src/main.ts
function hello(compiler: string) {
console.log ("Hi");
console.log ("Hi 2");
console.log(`Hello from ${compiler}`);
}
hello('TypeScript');
I ran gulp and saw ts -> js converted code...
// File name: dist/main.js
function hello(compiler) {
console.log ("Hi");
console.log ("Hi 2");
console.log("\uC548\uB155 from " + compiler);
}
hello('TypeScript')
As shown in , only Korean in template string has been changed to Unicode.
Of course, the result of node dist/main.js is well printed in Korean, but... Is there a way to convert the Korean of the template string into the Korean like other Korean of the regular string?
typescript korean unicode node.js
First of all, the unicode escaped is a problem-free JavaScript code. After searching for related issues, it seems that the type script compiler does not support related options separately, and unnecessary escapes from the compiler need to be removed.
https://github.com/microsoft/TypeScript/issues/36174
568 Who developed the "avformat-59.dll" that comes with FFmpeg?
573 Understanding How to Configure Google API Key
600 GDB gets version error when attempting to debug with the Presense SDK (IDE)
610 Uncaught (inpromise) Error on Electron: An object could not be cloned
567 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.