On an Air, 8gb is the bare minimum that is realistically viable, for people who don’t do anything than browse the web
Thanks to the modern web, web browsing of one of the most RAM intensive tasks. Add a few Electron based apps and you're in hell.