Indeed. Probably you should’ve first had a look at the difference between declarative and imperative languages there.
Good article, overall. You understand a lot already, keep learning and writing about it.
Suggestion: have a look at domain specific languages and low code – we need people that understand we can’t keep doing low level coding in a world that needs new software ever faster.