
Day 7 of the National Pre-tech Training program began with a recap of what participants learnt the previous day. The ladies continued to delve further into JavaScript; expanded the conditions they wrote by including ‘’else if’’. The trainers then introduced them to three ways of writing loops by using “for’’, ‘’for each’’ and ‘’while’’ in JavaScript.
With hands-on practicals, participants came up with different concepts using the ‘’for’’ loop and “for each’’. They also revised what arrays are, how to define them and what they are used for. Some of them came up with an array of services for their websites, others also came up with a list of food menus for their restaurant’s websites.
Later, they discussed the functions in JavaScript. The trainers taught them how to write and use functions.
In conclusion, the trainers showed them how they can use JavaScript codes in an HTML file. On this note, they completed the lessons on JavaScript. #PretechDiaries.




