The best times to visit Yosemite are May and September, when the park is accessible but not too crowded. It’s important to know that many roads and trails in Yosemite are closed for the majority of the year due to snow and rain, and the main town of Yosemite is the Yosemite Valley, which is like a small town, there few stores like pizza,buger, and groceries . as per my own experience it is good to have some food with you before you go to Yosemite because the food is expensive there .
Yosemite National Park