javascript toggle show hide text

 

 

 

 

Im a total beginner in Javascript, and I came across this script for a show/hide toggle: