Change location for data files

This commit is contained in:
Kamran Ahmed committed 2023-02-21 12:25:58 +00:00
1 parent b741a0e1ee
commit b6a0255f12
2772 files changed
+30 -30

No files matched your search

@@ -0,0 +1,8 @@
# for...in statement
The for...in statement iterates over all enumerable properties of an object that are keyed by strings (ignoring ones keyed by Symbols), including inherited enumerable properties.
Visit the following resources to learn more:
- [for...in statement - MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...in)
- [The for..in loop with examples](https://javascript.info/object#forin)
@@ -0,0 +1,7 @@
# for...of statement
The for...of statement executes a loop that operates on a sequence of values sourced from an iterable object. Iterable objects include instances of built-ins such as Array, String, TypedArray, Map, Set, NodeList (and other DOM collections), and the arguments object, generators produced by generator functions, and user-defined iterables.
Visit the following resources to learn more:
- [for...of statement - MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of)
@@ -0,0 +1,10 @@
# Labeled Statements
JavaScript label statements are used to prefix a label to an identifier. It can be used with `break` and `continue` statement to control the flow more precisely.
A label is simply an identifier followed by a colon`(:)` that is applied to a block of code.
Visit the following resources to learn more:
- [JavaScript MDN Docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/label)
- [Tutorialspoint – JavaScript Tutorial](https://www.tutorialspoint.com/What-are-label-statements-in-JavaScript)
@@ -0,0 +1,11 @@
# Break continue
`break` statement, without a label reference, can only be used to jump out of a loop or a switch block.
`continue` statement, with or without a label reference, can only be used to skip one loop iteration.
Visit the following resources to learn more:
- [JavaScript MDN Docs - continue statement](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/continue)
- [JavaScript MDN Docs - break statement](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/break)
- [W3Schools – JavaScript Tutorial](https://www.w3schools.com/js/js_break.asp)
@@ -0,0 +1,8 @@
# The `for` loop
The `for` loop is a standard control-flow construct in many programming languages, including JavaScript. It's commonly used to iterate over given sequences or iterate a known number of times and execute a piece of code for each iteration.
Visit the following resources to learn more:
- [JavaScript for Loop - CodeGuage](https://www.codeguage.com/courses/js/loops-for-loop)
- [The for Loop - MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for)
@@ -0,0 +1,8 @@
# do...while statement
The `do...while` statement creates a loop that executes a specified statement until the test condition evaluates to `false`. The condition is evaluated after executing the statement, resulting in the specified statement executing at least once.
Visit the following resources to learn more:
- [do...while - MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/do...while)
- [JavaScript do...while Loop - W3Schools](https://www.w3schools.com/jsref/jsref_dowhile.asp)
@@ -0,0 +1,8 @@
# while statement
The `while` statement creates a loop that executes a specified statement as long as the test condition evaluates to `true`. The condition is evaluated before executing the statement.
Visit the following resources to learn more:
- [While Statement - MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/while)
- [The while Loop - CodeGuage](https://www.codeguage.com/courses/js/loops-while-loop)
@@ -0,0 +1,16 @@
# Loops and Iterations
Loops offer a quick and easy way to do something repeatedly.
You can think of a loop as a computerized version of the game where you tell someone to take X steps in one direction, then Y steps in another. For example, the idea "Go five steps to the east" could be expressed this way as a loop:
```
for (let step = 0; step < 5; step++) {
// Runs 5 times, with values of step 0 through 4.
console.log('Walking east one step');
}
```
Visit the following resources to learn more:
- [Loops and iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Loops_and_iteration)