Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
OrganizationAdvent CalendarQiitadon (β)
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

jscript で ES2015~ を使う

More than 3 years have passed since last update.

jscript って node.js とか入っていない PC でも使えて、簡単にダイアログ出せるで結構便利


Windows10 からは Edge で ES2015 や 2016 の JavaScript も書けるしエンジンを Chakra にすればいけるんじゃ?



const cvalue = 5

;[{cvalue}].forEach(({cvalue: e} = {cvalue: 1}) => {
    let lvalue = 0

    for(const k of [...[1, 2]]){
        lvalue += k ** k

    lvalue === e
        && Symbol.for("a") === Symbol.for("a")
        && [...new Set([1, 2, 1, 2])].length === 2
        && WScript.Echo(1)

動いていたら WScript.Echo(1) で 1 が表示されます

これを Chakra の CLSID をエンジンにして実行

wscript //E:{1b7cd997-e5ff-4932-a7a6-2a9e636da385} jscript.js


これで jscript ライフが捗る!?

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away