It has a risk but also, has merit.

Storage

permanently

on-chain

high-gas-cost

Each contract has 2^256 storage

This article help you more deeply understand

Screen Shot 2022-05-29 at 10.03.05.png

Memory

not-permanently(temporary) during a function execution.

it is used for types of string, array, struct

変更されうる

Screen Shot 2022-05-29 at 10.03.18.png

Call Stack(Stack)