How did the dinosaurs become extinct?

Will humans also become extinct like dinosaurs? What will happen if an asteroid hits like 66 million years ago?

It is said about dinosaurs that they first appeared on Earth about 230 million years…