For somebody coming from graphic design background
https://processing.org would be and excellent place to learn about programming. It was designed with creative types in mind, has large communities, many resources including books and courses and a newer JavaScript version. I would also recommend Generative Design book:
http://www.generative-gestaltung.de/aboutLearning Processing would not be directly useful for building web and mobile sites, but in my opinion be an excellent stepping stone for a graphic designer towards the world of technology and creative uses of programming. Using JavaScript (P5.js) to create visuals could be an interesting path for designer as an end goal and/or relevant and engaging way to learn coding concepts that can be later applied towards building sites or apps of any type.