Merge pull request #1595 from flota113/flota113-1585
Fixed a few typos in javascript-basic
This commit is contained in:
@ -503,7 +503,7 @@
|
|||||||
"difficulty":"9.98171",
|
"difficulty":"9.98171",
|
||||||
"description":[
|
"description":[
|
||||||
"",
|
"",
|
||||||
"We are able to modify the data store in an array be using indexes",
|
"We are able to modify the data stored in an array by using indexes",
|
||||||
"Example:",
|
"Example:",
|
||||||
"<code>",
|
"<code>",
|
||||||
"var ourArray = [1,2,3];",
|
"var ourArray = [1,2,3];",
|
||||||
@ -536,10 +536,10 @@
|
|||||||
"difficulty": "9.9818",
|
"difficulty": "9.9818",
|
||||||
"description": [
|
"description": [
|
||||||
"",
|
"",
|
||||||
"When and array has been defined we still have the ability to make changes to it afterwards",
|
"When an array has been defined we still have the ability to make changes to it afterwards",
|
||||||
"One common way in which we can manipulate the data in an array is through <code> .pop() </code>",
|
"One common way in which we can manipulate the data in an array is through <code> .pop() </code>",
|
||||||
"<code> .pop() </code> is used to \"pop\" a value from the end of an array. We can retrieve this value by preforming the pop in a variable declaration.",
|
"<code> .pop() </code> is used to \"pop\" a value from the end of an array. We can retrieve this value by performing the pop in a variable declaration.",
|
||||||
"any type of variable can be \"popped\" from and array",
|
"Any type of variable can be \"popped\" from an array",
|
||||||
"Let's try <code> .pop() </code> now"
|
"Let's try <code> .pop() </code> now"
|
||||||
],
|
],
|
||||||
"tests": [
|
"tests": [
|
||||||
@ -639,13 +639,13 @@
|
|||||||
"description":[
|
"description":[
|
||||||
"",
|
"",
|
||||||
"In JavaScript we can divide up our code into separate and reusable parts called functions",
|
"In JavaScript we can divide up our code into separate and reusable parts called functions",
|
||||||
"here's and example of a function",
|
"Here's an example of a function",
|
||||||
"<code>",
|
"<code>",
|
||||||
"function functionName (a, b){",
|
"function functionName (a, b){",
|
||||||
" return(a + b);",
|
" return(a + b);",
|
||||||
"}",
|
"}",
|
||||||
"</code>",
|
"</code>",
|
||||||
"our function can be called like this",
|
"Our function can be called like this",
|
||||||
"<code>functionName();</code>",
|
"<code>functionName();</code>",
|
||||||
"Let's try creating and calling a function now called <code>myFunction</code>"
|
"Let's try creating and calling a function now called <code>myFunction</code>"
|
||||||
],
|
],
|
||||||
@ -688,7 +688,7 @@
|
|||||||
"};",
|
"};",
|
||||||
"</code>",
|
"</code>",
|
||||||
"Objects are useful for storing data in a structured way or in a way that represents a real world object like a cat.",
|
"Objects are useful for storing data in a structured way or in a way that represents a real world object like a cat.",
|
||||||
"Let's try to make a Object that represents a dog called myDog!"
|
"Let's try to make an Object that represents a dog called myDog!"
|
||||||
|
|
||||||
],
|
],
|
||||||
"tests":[
|
"tests":[
|
||||||
|
Reference in New Issue
Block a user