Coding task · Blockchain and Web3 course · Module 6: Solidity Basics

A pure Function

Create a pure function that performs calculations without accessing state. Simulation in JavaScript.

Task

Write an add function that adds two numbers without using object fields