Ad
  • Default User Avatar

    The require statement is actually not necessary for this Kata, so you can write your code as if you had included it and it will work.

    If you do want to include a require statement for practice, you have to add '.Buffer' to the end of the statement as follows:
    const buffer = require('buffer').Buffer;

    The description for using require statements given in the project description can be misleading for people without Node.js experience.

  • Custom User Avatar
  • Custom User Avatar

    Why does it keep saying "Buffer.from is not a function"?