Question: How would you write an enum variable called AppState with values for Offline, Loading, and Ready?
- enum AppState = [Offline, Loading, Ready]
- enum AppState {"Offline", "Loading", "Ready"}
- enum AppState = {Offline, Loading, Ready}
- enum AppState {Offline, Loading, Ready}
Answer: The correct answer of the above question is Option D:enum AppState {Offline, Loading, Ready}