Yes, but I had not read everything in detail yet and as per reply from you in the earlier thread pasted below, my ultimate intention was to use one function instead of four, which is what was directly suggested to me. I therefore assumed, (prior to reading all the suggestions properly) that they would help me to do that.
<<I’d suggest you come up with a single reusable way of toggling that can be used without having the create a new function every time because that isn’t the correct way of doing it. I’d also create a class and use classList with the .toggle()
method instead of inline styles.>>
I will work through it all and see how it goes. Thanks.