I've installed Babeljs by using
sudo npm install -global babel-cli
my test ES6 file contain
let name = 'Teh';
console.log(name);
and then , i try to compiled ES6 by using (ref. hxxps://babeljs.io/docs/usage/cli/)
babel test.js
The output of babel has not been complied.
Please see the image , "let" should be converted to "var"
Did i do something wrong? Please help me to solve this problem , i'm a new in ES6.
Thank you.
**Sorry for my bad English.
-- Update
Try to specified the output file : babel test.js --out-file test-compiled.js