Coding task · Blockchain and Web3 course · Module 1: Blockchain Fundamentals
Create a Simple Block
Complete the code by creating an object representing a block in the blockchain.
Task
Create a block object with fields: index, timestamp, data, previousHash, hash