|
| 1 | +--- |
| 2 | +_id: "681d45fb-c392-4f19-aa7c-8f47664312b3" |
| 3 | +title: "Javascript Beginnings" |
| 4 | +published: "August 23, 2020" |
| 5 | +slug: "javascript-beginnings" |
| 6 | +description: "I am now seeing the value of having kept this blog up either on a daily" |
| 7 | +categories: |
| 8 | + ["Coding Bootcamp", "Career Changer", "Junior Developer", "Javascript"] |
| 9 | +author: "Ben Patton" |
| 10 | +authorImage: "https://cdn.sanity.io/images/nfspldzq/production/3ceeda54221c7c0614ecc51f955c7be39a1da34e-512x512.jpg" |
| 11 | +type: "Blog" |
| 12 | +--- |
| 13 | + |
| 14 | +_This is an article that I originally wrote for my Wordpress site but have moved here._ |
| 15 | + |
| 16 | +So we just finished week 3 of bootcamp and I am now seeing the value of having kept this blog up either on a daily, every other day or weekly basis. The nature of the immersive bootcamp is that where we are now, all I know is I know more than I knew three weeks ago. |
| 17 | + |
| 18 | +Anyways, at some point towards the end of week 1 and by the start of week 2 we began to learn Javascript. Javascript, like most other languages, is incredibly vast. I will list a few things about Javascript, that go with what we learned in week 2 because week 3, which will be the next blog, was quite intense (Asynchronous Javascript anyone?). |
| 19 | + |
| 20 | +So, week 2, the basics of Javascript. |
| 21 | + |
| 22 | +- Strings and numbers (literally words and numbers) |
| 23 | +- Booleans (uses evaluators like `>`, `<`, `<=`,`>=`, etc to determine true or false) |
| 24 | +- Variables (holds something like a ‘word’ or number or eventually lines upon lines of code) |
| 25 | +- If-else statements (if ‘this’ then do this, else ‘do this’) (you can add if conditions within if conditions which are labeled as ‘else if’ statements) |
| 26 | +- Loops (while loop – while ‘this condition’ do this) (for loop – for ‘this condition’ do this). This is an incredible over simplification. |
| 27 | +- Functions – take everything above into a function and every time you want to use that function you can just call the function. The functions definition is all the code you give it (again and incredible over-simplification). |
| 28 | +- Array’s and Objects (Array’s are a list of values which are placed inside [ ]). |
| 29 | +- Objects need their own line and sub-line. |
| 30 | +- Objects are recognized by `{ }`. So the most confusing thing is that Objects are Array’s. |
| 31 | +- Array’s have values [1, 2, 4, 24, 465]. |
| 32 | +- The first value in an array is 1. 1 is at an index of 0. |
| 33 | +- So if you want to pull 1 from the array it looks like array[0]. |
| 34 | +- If you were to type the array by index it would look like Array[0:1, 1:2, 2:4, 3:24, 4:465] |
| 35 | + HOWEVER! |
| 36 | +- That format is what an Object is. Object `{Key: value, Key: value}`. |
| 37 | +- Array’s do not get formatted/typed by index. The index is understood |
| 38 | +- Confused? Me too, google it. |
| 39 | +- Putting html, css and javascript together. |
| 40 | +- Made a calculator. A lot harder than it sounds. |
| 41 | + |
| 42 | +So, that is most of week 2. Like I said, next week will be a little deeper but it might end abruptly due to the complexity and melting of the brain when thinking about Asynchronous programming. |
| 43 | + |
| 44 | +Till next time, |
| 45 | + |
| 46 | +– Ben |
0 commit comments