JavaScript Lingo: Manipulating Data


Methods and functions are ways you can manipulate variables or other sets of information.

Methods are built into JavaScript, and you will become more familiar 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 familiarize yourself with the sheer amount and general potential for the methods that exist. 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 algorithm practice at Free Code Camp, you will create functions that take a certain piece of information and manipulate it in whatever way you choose.

You'll become more familiar with syntax there, but for now, just remember that with methods and functions you can do almost anything with your code.