Meaning Behind Envy & Jealousy

Recently I came to understand the meaning of envy and jealousy through a book. It defines them as :

“Envy is when you want what someone else has. And
Jealousy’s when you also don’t want them to have it.”

 I also understood it that it’s a powerful and dangerous feelings. One should understand it’s meaning before using it.