You can learn to logout of WhatsApp from your PC/Mac book if you are logged in here. Follow the steps to logout of WhatsApp Web:
Open your web.whatsapp.com and you can see it here. 3 dots After that,
you can see a logout option at the end. Click here. Now you can easily logout your Whatsapp account from the web.