Hi Elvis.
The black dots appear to be what is called frass....droppings from the caterpillar that is eating your basil. Otherwise the basil looks to be alright. You need to remove the worm and before using the basil to cook, gently rinse off the leaves. I would check all the leaves for other worms, both top and bottom. There is no need to worry otherwise.
Glad you are enjoying NGA.