1/ Go to Link: remix.ethereum.org
2/ Create a new folder on remix :

3/ Name this item and press Enter:

4/ Copy the code below and paste it into the blank field.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
contract FunctionTypes{
uint256 public number = 5;
constructor() payable {}
// 函数类型
// function (<parameter types>) {internal|external} [pure|view|payable] [returns (<return types>)]
// 默认function
function add() external{
number = number + 1;
}
// pure: 纯纯牛马
function addPure(uint256 _number) external pure returns(uint256 new_number){
new_number = _number+1;
}
// view: 看客
function addView() external view returns(uint256 new_number) {
new_number = number + 1;
}
// internal: 内部
function minus() internal {
number = number - 1;
}
// 合约内的函数可以调用内部函数
function minusCall() external {
minus();
}
// payable: 递钱,能给合约支付eth的函数
function minusPayable() external payable returns(uint256 balance) {
minus();
balance = address(this).balance;
}
}
5/ Click as shown in the picture.

6/ Last step Click on the Eth Logo and select the wallet connection metamask, remember to switch to #Scorll network then deploy and pay 0.3$ Scroll network fee.

7/ Check to see if you qualify:
https://scroll.io/developer-nft/check-eligibility


