Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Crypto Zombies Lesson 1 ,Ch10 More on Functions, Solidity Pure Vs View Function
Play lesson

Crypto Zombies Tutorial (Intro to Solidity) - Crypto Zombies Lesson 1 ,Ch10 More on Functions, Solidity Pure Vs View Function

4.0 (3)
22 learners

What you'll learn

This course includes

  • 1.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

In this lesson we go over a bit more about functions in Solidity. We learn about the difference between declaring a function as a view function and as a pure function. A view function does not change the state of our solidity app, it does not change the values of anything or even write anything. A pure function doesnt access any data that is in the app. The pure function in Solidity only takes in data from its parameter. In this challenge we create a function that will generate random zombie DNA. We decalare it a private and view function which will return an iunsigned integer.

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere