We learned to create functions with parameters to generate random numbers, which demonstrated the importance of parameters in controlling function behavior and enhancing code reusability.
We explored the use of the "return" keyword to output values from functions, crucial for integrating function results into other parts of the program.
We also created a function called "exibirMensageInicial" with no parameters or return value, highlighting that some functions are meant for specific tasks like displaying messages or initialization.
Understanding the difference between functions with and without return values is key. Functions with return values are useful for obtaining specific results, while those without are ideal for procedures.
Finally, we practiced invoking and calling functions, and learned about the significance of parameters and return values in facilitating communication between functions and the rest of the program.
Overall, these topics provide a solid foundation in JavaScript, improving our ability to write efficient and organized code.