Skip to content

solidity #2819

Answered by byte14
gnutan181 asked this question in Q&A
Sep 23, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

We write returns (uint256) to indicate that you will be returning a variable of uint256 type in your function.
If you want to return a string then you will write returns (string memory) and if you don't want to return anything you wouldn't write returns keyword.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@gnutan181
Comment options

Answer selected by alymurtazamemon
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants