The commands written in the Console window are erased the moment when you close the session. However, an R Script allows you to show your work to others, and also reproduce and modify the results.
Actually, In the console the moment we press 'Enter' it will give us the output. We can not save the console file. Usually, the console is used when we want to see the output immediately and for very short programs. R script is the formal way of writing the code it will run the code only when we press 'Run' or 'ctrl+enter'. We can save/share/reuse our code in R script.