Share your repls and programming experiences

← Back to all posts
#WEEKLY Challenge 1
eankeen (1407)

uses a babel plugin to transpile to the correct operator. as per the rules no external libraries were used... kind of. it requires babel, but it's sort of built in to jest so there are no issues here.

edit: it broke after i posted. fixing it...
edit 2: should be fixed, may need a few hours to update
edit 3: apparently my entry is invalid. working in revalidating it...

Commentshotnewtop
TheForArkLD (734)

hmmmm we can use ** in js

eankeen (1407)

@TheForArkLD the exponentiation operator is an es2016 feature

eankeen (1407)

@TheForArkLD you can learn more about the exponentiation operator here: https://tc39.es/ecma262/#sec-exp-operator. it's essentially syntax sugar for what you just posted