diff --git a/exercises/buffer_from_string/solution/solution.js b/exercises/buffer_from_string/solution/solution.js index d9f7d90..6df77da 100644 --- a/exercises/buffer_from_string/solution/solution.js +++ b/exercises/buffer_from_string/solution/solution.js @@ -1 +1 @@ -console.log(new Buffer('bytewiser')) +console.log(Buffer.from('bytewiser')) diff --git a/exercises/hexadecimal_encoding/solution/solution.js b/exercises/hexadecimal_encoding/solution/solution.js index d09ed19..8714268 100644 --- a/exercises/hexadecimal_encoding/solution/solution.js +++ b/exercises/hexadecimal_encoding/solution/solution.js @@ -1,2 +1,2 @@ var bytes = process.argv.slice(2).map(Number) -console.log(new Buffer(bytes).toString('hex')) +console.log(Buffer.from(bytes).toString('hex'))