In this post,MiniToolwill tell you the hubs and switchs pop in, features, and so on.
And this post will give you some information about hub vs switch.
What Is Hub?

As a networking equipment, the hub allows you to connect several PCs to a single internet.
you might use it to connect segments of a LAN.
The hub acts as a common connection point for devices in the online grid.

What Is Switch?
The switch can process the data and know the specific address to send the message.
The switch is usually called a bridging unit because the process of linking connection segments is also called bridging.
Hub VS Switch
Whats the difference between hub and switch?
This part will give you some basic information about connection switch vs hub.