I have used khan academy before and these are the projects I've made with JavaScript and HTML. I learned how to make variables, shapes, functions, text, animation, if then statements and commenting. Variables store value in objects to create it you type var a name and give it a value. To create a function you give declare it by typing var then a name. It will repeat code without typing it entirely will allow you to repeat things, draw things and you can do other things. For if then statements you want to be able to say "if this thing is true, then do this but if this other thing is true, then do this. It's like when you it's cold, if it's cold outside then I take I wear pants and jackets but if it's sunny, I wear sunglasses and shorts. Commenting is important because it can tell the person who's seeing the code what will happen and what each code is doing. Coding allowed me to create things I thought were impossible were to create and I had fun.
Magic 8 Ball
0 Comments
Leave a Reply. |
Archives
September 2020
CategoriesThis work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. |