JavaScript Lingo: Manipulating Data
The differences and similarities of methods and functions in JavaScript
Methods and functions are ways you can manipulate variables or other sets of information.
Methods are built in to JavaScript, and you will become more familliar with these as you write functions for the bonfires. I'd suggest looking through the MDN (Mozilla Developer Network that we discussed in the first video) to familliarize yourself with the sheer amount and general potential for the methods that exist. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Methods_Index
Examples include '.split(' ')', which will turn a string into an array and can do so in many different ways. Methods are powerful - many times when you want your script to do something, there's a method for that.
Functions, like variables, are something you define and create. During your bonfires, you will create functions that take a certain piece of information and manipulate it in whatever way you choose. You'll become more familliar with syntax there, but for now, just remember that with methods and functions you can do almost anything with your code.
Other Videos By freeCodeCamp.org
2015-08-24 | Chrome Dev Tools: Audits Tab |
2015-08-24 | Chrome Dev Tools: Resources Tab |
2015-08-24 | Chrome Dev Tools: Memory Tab |
2015-08-24 | Chrome Dev Tools: Timeline Tab |
2015-08-24 | Chrome Dev Tools: Sources Tab |
2015-08-24 | Chrome Dev Tools: Network Tab |
2015-08-24 | Chrome Dev Tools: Elements Tab |
2015-08-23 | JavaScript Lingo: Regular Expressions |
2015-08-23 | JavaScript Lingo: Loops |
2015-08-23 | JavaScript Lingo: Math |
2015-08-23 | JavaScript Lingo: Manipulating Data |
2015-08-23 | JavaScript Lingo: Finding and Indexing Data in Arrays |
2015-08-23 | |
2015-08-23 | JavaScript Lingo: Variables & camelCase |
2015-08-23 | JavaScript Lingo: Value Types |
2015-08-23 | JavaScript Lingo: MDN and Documentation |
2015-07-17 | Computer Basics 17: How Routers and Packets work |
2015-07-17 | Computer Basics: Chips and how Moore's Law works |
2015-07-17 | Computer Basics 15: Analog vs Digital and how File Compression works |
2015-07-17 | Basejump: Build a Pinterest Clone |
2015-07-17 | Computer Basics 18: How Source Code works |