How to create a node (shpere, ..) and set the color with typescript

I am incredibly excited to delve into Cocos Creator, but I couldn’t find clear tutorials especially for typescript. How I can create a sphere (any node) dynamically with code and set a color for it ? Also please if you provide me on how I could find the answer alone from the documentation.

Creating and destroying nodes: Cocos Creator 3.8 Manual - Create and Destroy Nodes

You can change the color by using the getComponent(Sprite) method: Cocos Creator 3.8 Manual - Access Nodes and Components

I have a crash course showing some basics on creating scripts and manipulating them in typescript: https://youtu.be/8xKqNQW0rAU, I just never showed how to dynamically create nodes yet.