What Is A Pure Function

[Solved] What Is A Pure Function | Solidity - Code Explorer | yomemimo.com
Question : Pure Function

Answered by : mariana-mena

const array = [1,2,3]
function addElementToArray(a,element){
return [...a, element]
}
//invoce function
addElementToArray(array,4)
//[1,2,3,4]

Source : https://www.youtube.com/watch?v=fYbhD_KMCOg&t=116s | Last Update : Mon, 10 Oct 22

Answers related to what is a pure function

Code Explorer Popular Question For Solidity