diff --git a/js.js b/js.js index 8a43beb..84b1404 100644 --- a/js.js +++ b/js.js @@ -1,5 +1,27 @@ import path from "path"; import fs from "fs"; +import * as prettier from 'prettier' + +const x: string = "xx" + +const a: string = "q" + +const z = 1 +console.log(z + x) +console.log(a + x) + +console.log(z + x) +console.log(a + x) + +const b = { a: 1 } +console.log(`Some ${b}`) +console.log(`Some ${b}`) + +console.log(x + prettier.format("a")) +console.log(` some ${prettier.format("a")}`) + +console.log(x + prettier.format("a")) +console.log(` some ${prettier.format("a")}`) const unused_variable = 123; @@ -23,5 +45,5 @@ function foo() { const always_false = foo(); const very_bad_variable = ">:D"; let non_const_and_unused = 'x' && 'y' -let x = 1; +let x1 = 1; let x2 = 2;