Day 14 of my 30-day challenge
#learningweb3
Today I learned about dynamic arrays in Solidity.
Dynamic arrays can grow and shrink in size during execution.
push β adds a new element at the end of the array
Example:
arr.push(100); //[10,0,30,40,90,80,5,100]
pop β removes the last element of the array
Example:
arr.pop();
Important:
push() increases the array length
pop() decreases the array length
pop() only removes the last element
Extra activity:
Completed SpeedRunEthereum Tokenization challenge
lnkd.in/g2CgdajK
Airdrops:
Claimed
@ofc_the_club token
Performed swaps on Stabilizer
Day 14 done.
#30DayChallenge #Consistency #Solidity #Web3 #DailyLearning