From e3dfeb79a765bfd8c2f8dbdb6181b023f08b6707 Mon Sep 17 00:00:00 2001 From: yikth Date: Fri, 28 Aug 2020 17:16:12 +0800 Subject: [PATCH] test javascript --- chart2/svgGraphs.html | 2 +- playground/variables.js | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 playground/variables.js diff --git a/chart2/svgGraphs.html b/chart2/svgGraphs.html index 23f96d6..2a97b27 100644 --- a/chart2/svgGraphs.html +++ b/chart2/svgGraphs.html @@ -36,7 +36,7 @@ .append("g").attr("transform", "translate(" + margin.left + "," + margin.top + ")"); - // Get the data + // Get the data from csv d3.csv("expensestrend.csv", function(error, data) { if (error) throw error; // format the data diff --git a/playground/variables.js b/playground/variables.js new file mode 100644 index 0000000..3715818 --- /dev/null +++ b/playground/variables.js @@ -0,0 +1,14 @@ +console.log("Starting...."); + +var c; + +console.log(c); + +var d = 55; + +// template literal `..` +console.log(`My answer is ${d}`); + +var x = 10; +var y = 20; +console.log(`Translate(${x}, ${y})`);