javascripting
Advanced tools
Comparing version 1.2.0 to 1.3.0
{ | ||
"name": "javascripting", | ||
"description": "Learn JavaScript by adventuring around in the terminal.", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "url": "git://github.com/sethvincent/javascripting.git" |
@@ -11,5 +11,5 @@ var path = require('path'); | ||
run(args[0], function (err, result) { | ||
if (/55/.test(result)) cb(true); | ||
if (/45/.test(result)) cb(true); | ||
else cb(false); | ||
}); | ||
}; |
@@ -8,4 +8,4 @@ --- | ||
```js | ||
for (var i=0; i<=10; i++) { | ||
// log the numbers 0 through 10 | ||
for (var i = 0; i < 10; i++) { | ||
// log the numbers 0 through 9 | ||
console.log(i) | ||
@@ -17,4 +17,4 @@ } | ||
The statement `i<=10;` indicates the limit of the loop. | ||
It will continue to loop if `i` is less than or equal to `10`. | ||
The statement `i < 10;` indicates the limit of the loop. | ||
It will continue to loop if `i` is less than `10`. | ||
@@ -21,0 +21,0 @@ The statement `i++` increases the variable `i` by 1 each loop. |
--- | ||
# THE TOTAL IS 55 | ||
# THE TOTAL IS 45 | ||
@@ -5,0 +5,0 @@ That is a basic introduction to for loops, which are handy in a number of situations, particularly in combination with other data types like strings and arrays. |
@@ -45,3 +45,2 @@ # JAVASCRIPTING | ||
- "IF/ELSE STATEMENTS | ||
- "ACCESSING ARRAY VALUES" | ||
@@ -48,0 +47,0 @@ - "OBJECT KEYS" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54489
55