Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

javascripting

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

javascripting - npm Package Compare versions

Comparing version 1.10.3 to 1.11.0

problems/accessing-array-values/index.js

1

menu.json

@@ -15,2 +15,3 @@ [

"LOOPING THROUGH ARRAYS",
"ACCESSING ARRAY VALUES",
"OBJECTS",

@@ -17,0 +18,0 @@ "OBJECT PROPERTIES",

2

package.json
{
"name": "javascripting",
"description": "Learn JavaScript by adventuring around in the terminal.",
"version": "1.10.3",
"version": "1.11.0",
"repository": {

@@ -6,0 +6,0 @@ "url": "git://github.com/sethvincent/javascripting.git"

@@ -7,3 +7,3 @@ ---

In the next challenge we will work on an example of looping through arrays.
In the next challenge we will work on an example of accessing array values.

@@ -10,0 +10,0 @@ Run `javascripting` in the console to choose the next challenge.

@@ -16,3 +16,3 @@ ---

The statement `i < 10;` indicates the limit of the loop.
The statement `i < 10;` indicates the limit of the loop.
It will continue to loop if `i` is less than `10`.

@@ -24,3 +24,3 @@

Create a file named for-loop.js.
Create a file named `for-loop.js`.

@@ -31,3 +31,3 @@ In that file define a variable named `total` and make it equal the number `0`.

Create a for loop with a variable `i` starting at 0 and increasing by 1 each time through the loop. The loop should run as long as `i` is less than `limit`.
Create a for loop with a variable `i` starting at 0 and increasing by 1 each time through the loop. The loop should run as long as `i` is less than `limit`.

@@ -34,0 +34,0 @@ On each iteration of the loop, add the number `i` to the `total` variable. To do this, you can use this statement:

@@ -25,7 +25,7 @@ ---

Create a file named function-arguments.js.
Create a file named `function-arguments.js`.
In that file, define a function named `math` that takes three arguments. It's important for you to understand that arguments names are only used to reference them.
In that file, define a function named `math` that takes three arguments. It's important for you to understand that arguments names are only used to reference them.
Name each argument as you like.
Name each argument as you like.

@@ -38,4 +38,4 @@ The function `math` should multiply the second and third arguments, then add the first argument to the outcome of the multiplication and return the value obtained.

`javascripting verify function-arguments.js`
`javascripting verify function-arguments.js`
---

@@ -25,3 +25,3 @@ ---

Create a file named functions.js.
Create a file named `functions.js`.

@@ -41,4 +41,4 @@ In that file, define a function named `eat` that takes an argument named `food`

`javascripting verify functions.js`
`javascripting verify functions.js`
---

@@ -21,3 +21,3 @@ ---

## The challenge
## The challenge:

@@ -24,0 +24,0 @@ Create a file named `if-statement.js`.

@@ -14,3 +14,3 @@ ---

## The challenge
## The challenge:

@@ -17,0 +17,0 @@ Create a file named `number-to-string.js`.

@@ -10,3 +10,3 @@ ---

Create a file named numbers.js.
Create a file named `numbers.js`.

@@ -13,0 +13,0 @@ In that file define a variable named `example` that references the integer `123456789`.

@@ -13,3 +13,3 @@ ---

Create a file named rounding-numbers.js.
Create a file named `rounding-numbers.js`.

@@ -16,0 +16,0 @@ In that file define a variable named `roundUp` that references the float `1.5`.

@@ -14,2 +14,4 @@ ---

#NOTE
Make sure there is a period between `example` and `length`.

@@ -19,4 +21,7 @@

Create a file named string-length.js.
## The challenge:
Create a file named `string-length.js`.
In that file, create a variable named `example`.

@@ -23,0 +28,0 @@

@@ -14,5 +14,8 @@ ---

```
#NOTE
Try to stay consistent. In this workshop we'll only use single quotes.
## The challenge:
For this challenge, create a file named `strings.js`.

@@ -19,0 +22,0 @@

@@ -21,4 +21,8 @@ ---

Note that it is **declared** using `var` and uses the equals sign to **define** the value that it references. This is colloquially known as "Making a variable equal a value".
# NOTE
A variable is **declared** using `var` and uses the equals sign to **define** the value that it references. This is colloquially known as "Making a variable equal a value".
## The challenge:
Create a file named `variables.js`.

@@ -25,0 +29,0 @@

@@ -64,3 +64,2 @@ # JAVASCRIPTING

- "ACCESSING ARRAY VALUES"
- "OBJECT KEYS"

@@ -67,0 +66,0 @@ - "FUNCTION RETURN VALUES"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc