2023-02-23 10:55:58 +03:00
|
|
|
|
// @target: es6
|
2021-01-15 13:30:44 +03:00
|
|
|
|
|
|
|
|
|
var t1 = 10;
|
|
|
|
|
var t2 = 10;
|
|
|
|
|
var s;
|
|
|
|
|
|
|
|
|
|
// With TemplateTail
|
|
|
|
|
`${t1 ** t2} world`;
|
|
|
|
|
`${t1 ** t2 ** t1} world`;
|
|
|
|
|
`${t1 + t2 ** t1} world`;
|
|
|
|
|
`${t1 ** t2 + t1} world`;
|
|
|
|
|
`${t1 + t2 ** t2 + t1 } world`;
|
|
|
|
|
`${typeof (t1 ** t2 ** t1) } world`;
|
|
|
|
|
`${1 + typeof (t1 ** t2 ** t1) } world`;
|
|
|
|
|
|
|
|
|
|
`${t1 ** t2}${t1 ** t2} world`;
|
|
|
|
|
`${t1 ** t2 ** t1}${t1 ** t2 ** t1} world`;
|
|
|
|
|
`${t1 + t2 ** t1}${t1 + t2 ** t1} world`;
|
|
|
|
|
`${t1 ** t2 + t1}${t1 ** t2 + t1} world`;
|
|
|
|
|
`${t1 + t2 ** t2 + t1}${t1 + t2 ** t2 + t1} world`;
|
|
|
|
|
`${typeof (t1 ** t2 ** t1) }${typeof (t1 ** t2 ** t1) } world`;
|
|
|
|
|
|
|
|
|
|
`${t1 ** t2} hello world ${t1 ** t2} !!`;
|
|
|
|
|
`${t1 ** t2 ** t1} hello world ${t1 ** t2 ** t1} !!`;
|
|
|
|
|
`${t1 + t2 ** t1} hello world ${t1 + t2 ** t1} !!`;
|
|
|
|
|
`${t1 ** t2 + t1} hello world ${t1 ** t2 + t1} !!`;
|
|
|
|
|
`${t1 + t2 ** t2 + t1} hello world ${t1 + t2 ** t2 + t1} !!`;
|
|
|
|
|
`${typeof (t1 ** t2 ** t1) } hello world ${typeof (t1 ** t2 ** t1)} !!`;
|