does node v10.15.3 support es6 code example

Example 1: weakset in es6

/*
WeakSet() is as same as Set()
Similarities:
	1.WeakSet() has all methods that Set() has.
    2.WeakSet() Donot contain Duplicate Values as Set().
Differences:
    3.WeakSet Values are Non Enumerated
    4.WeakSet Value can only be Empty Objects
*/

var weak = new WeakSet();
weak.add({});
var a={};
weak.add(a);

Example 2: zerossl not working for node js

// Make sure to include the certificate bundle as well
const options = {
  key: fs.readFileSync("/dir/key.key"),
  cert: fs.readFileSync("/dir/crt.crt"),
  ca: fs.readFileSync("/dir/ca.ca"),
};