How to save a plot as a jpeg file?

Similar as in How to create layouts in Julia plotting packages? - #2 by aramirezreyes
The question about how to do something related to plotting in julia doesnt make a lot of sense. Every package has different design and implementations. So, like in the other thread how do you save a figure will be different depending on the package. So no, not a julia thing.