const buffer1 = Buffer.from('hello'); const buffer2 = Buffer.from([1, 2, 3, 4]); console.log(Buffer.isBuffer(buffer1)); // true console.log(Buffer.isBuffer(buffer2)); // true console.log(Buffer.isBuffer('not a buffer')); // falseIn this example, we create two Buffer objects using different methods, and then check whether each object is indeed a Buffer object using `isBuffer()`. The first two logs will return true since `buffer1` and `buffer2` are both Buffer objects, while the third log will return false since the third argument is not a Buffer object. The Buffer class is part of Node.js and also available in web browsers through the Node.js Buffer module.