Heat the olive oil in a large skillet or wok over medium-high heat.
Add the minced garlic and diced carrots to the pan, and sauté for about 2 minutes until fragrant and the carrots become tender.
Push the garlic and carrots to one side of the pan and pour in the beaten eggs. Scramble them until fully cooked, then mix everything together.
Add the diced chicken to the pan and cook for another 2 minutes until heated through.
Stir in the cooked jasmine rice, ensuring that the rice breaks apart and mixes well with the other ingredients.
Pour in the soy sauce and sesame oil, and add the green peas and diced pineapple. Stir well to combine all the ingredients and allow them to heat through, about 3-4 minutes.
Season with salt and pepper to taste. Finally, stir in chopped green onions for an extra burst of flavor.
Serve hot, garnished with fresh cilantro if desired.