Coding task · Blockchain and Web3 course · Module 1: Blockchain Fundamentals

Blockchain Simulation

Write a function that adds a new block to the chain.

Task

Complete the addBlock function that adds a block to the chain array