Skip to content

Lesson 1: Welcome to Remix! Simple Storage #1659

Answered by cromewar
vk00007 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @vk00007
In solidity the returns statement is just to specify the type of data you are going to return, the reason we create this function is because you will not always use REMIX, as favoriteNumber is a public variable, Remix automatically set up a button for you, but when you are going to develop locally you will not have it, so the retrieve function is a getter function.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@Odinaka12
Comment options

@Nlferu
Comment options

Answer selected by cromewar
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@cromewar
Comment options

@Nlferu
Comment options

@solidityb
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants