Skip to content

Commit 000564c

Browse files
Tanya ButenkoTanya Butenko
Tanya Butenko
authored and
Tanya Butenko
committed
syntaxis improvement
1 parent 8038457 commit 000564c

File tree

6 files changed

+148
-152
lines changed

6 files changed

+148
-152
lines changed

README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -17,38 +17,38 @@ _______________
1717

1818

1919

20-
If you familiar with git you can clone this repository to your machine and simply start working
20+
If you are familiar with git, you can clone this repository to your machine and simply start working
2121
through files starting from README.md file, after that jump to js/level1.js file.
2222

2323

24-
If you don't know what is git, relax, you can download the folder on your machine - go to
24+
If you don't know what git is, relax. You can download the folder on your machine - go to
2525
'releases' tab over the yellow line on the page and download folder 'Source code (zip)'.
26-
Unzip it and start from README.md file, after jump to js/level1.js file.
26+
Unzip it and start from README.md file, after jumping to js/level1.js file.
2727

2828

29-
To open web-page in your browser go to _index.html_ file and double click on it, you will see
30-
an option 'open in browser' - preferably use Chrome, but Firefox and Safari will work as well.
29+
To open the web-page in your browser go to _index.html_ file and double click on it, you will see
30+
an option 'open in browser'. Preferably use Chrome, but Firefox and Safari will work as well.
3131

32-
Follow the instructions in _level1.js_ file and type code in your Text Editor(it is where your code lives and you can write, edit and delete code), in order to see anything that you console.log() you need refresh web page and result will be in web console on the page(you can directly write javaScript code here as well and see result straight away, but as soon as you refresh the page all code will be gone, that is why we use Text Editor).
32+
Follow the instructions in _level1.js_ file and type code in your Text Editor (it is where your code lives and you can write, edit and delete code). In order to see anything that you console.log(), you need refresh the web page and the result will be in web console on the page (you can directly write javaScript code here as well and see the result straight away, but as soon as you refresh the page all the code will be gone, that is why we use Text Editor).
3333

3434

3535

3636
##Structure
3737
____________________
3838

3939

40-
- Css folder contains css files that are responsible for styles and how our project looks on the web.
40+
- CSS folder - contains css files that are responsible for styles and how our project looks on the web.
4141

42-
- img folder - a place where we can store images that we will use on our web-page
42+
- img folder - a place where we can store images that we will use on our web-page.
4343

44-
- Js folder contains javaScript files that makes our project works, it defines content and make static page functional.
44+
- Js folder contains javaScript files that makes our project work, it defines content and makes a static page functional.
4545
It contains 2 files:
46-
- _level1.js_ - basics with explanations(comments, variables, functions, if/else statements).
47-
- _level2.js_ - more complex javaScript with explanations(arrays, loops).
46+
- _level1.js_ - basics with explanations(comments, variables, functions, if/else statements)
47+
- _level2.js_ - more complex javaScript with explanations(arrays, loops)
4848
- _level3.js_ - html, css and how manipulate them with javaScript (selectors)
4949

50-
- _index.html_ - a file responsible for structure of our project.
50+
- _index.html_ - a file responsible for the structure of our project
5151

52-
- _Readme.md_ - a file with explanations and any information about the project, how to run it, what it is for etc.
52+
- _Readme.md_ - a file with explanations and any information about the project, how to run it, what it is for etc
5353

54-
- _cheat-sheet.md_ - file with quick overlook for key namings and their explanations.
54+
- _cheat-sheet.md_ - a file with a quick overlook for key namings and their explanations

cheat-sheet.md

+13-14
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
###JavaScript (or JS)
55

6-
It is a popular programming language commonly used to create interactive effects within web browsers
6+
It is a popular programming language commonly used to create interactive effects within web browsers.
77

88

99
###variable
1010

11-
A place to store values, can store any kind of information(data types): numbers, words, collections of data
11+
A place to store values, can store any kind of information (data types): numbers, words, collections of data
1212

1313

1414
###undefined variable
@@ -26,16 +26,16 @@ Set (give) some value to variable.
2626

2727
###string
2828

29-
A set of characters, word, phrase. To initialize variable with a string you need to put this string into quotes.
29+
A set of characters, word(s), phrase. To initialize variable with a string you need to put this string into quotes.
3030

3131
###boolean
3232

33-
Boolean variable represent a logical values True or False
33+
Boolean variable represent a logical value True or False
3434

3535

3636
###array
3737

38-
An ordered list of values, can store different type of data inside
38+
An ordered list of values, can store different types of data inside
3939

4040

4141
###operator
@@ -45,14 +45,14 @@ Mathematical operators, such as: +, -, *, /, >, <, = etc
4545

4646
###comments
4747

48-
Comments are some notes that you can leave for yourself or another person, the note that computer will not read. You can write a comment on a new line or on the same line after code as so: //I’m your comment
48+
Comments are some notes that you can leave for yourself or another person, a note that a computer will not read. You can write a comment on a new line or on the same line after code as so: //I’m your comment
4949
Single line comment starts with //
50-
Multi line comment are placed between /* .. */
50+
Multi line comment are placed between /* .. */
5151

5252

5353
###function
5454

55-
A separable, reusable piece of code. It takes some input do some manipulation on it and return us output
55+
A separable, reusable piece of code. It takes some input, does some manipulation on it and returns us an output.
5656

5757

5858
###to declare function
@@ -71,17 +71,17 @@ A value input that functions can accept
7171

7272
###while loop
7373

74-
It repeats code over and over again until some condition is met
74+
It repeats code over and over again until some condition is met.
7575

7676

7777
###for loop
7878

79-
This loop is similar to ‘while loop’, just with set amount of repetition. You declare counter in the statement as so: for(var i = 0; i < 5; i++){do something 5 times};
79+
This loop is similar to ‘while loop’, just with a set amount of repetition. You declare counter in the statement as so: for(var i = 0; i < 5; i++){do something 5 times};
8080

8181

8282
###infinite loop
8383

84-
A loop that does not stop and it’s a loop that you need to avoid. Each loop should have some condition so it can stop.
84+
A loop that does not stop and it’s a loop that you need to avoid. Each loop should have some condition so it can stop.
8585

8686

8787
###object
@@ -91,7 +91,7 @@ A collection of properties
9191

9292
###event
9393

94-
A type of object that is created when user interacts with web page. For example, JavaScript creates an event when user clicks on a button.
94+
A type of object that is created when a user interacts with a web page. For example, JavaScript creates an event when a user clicks on a button.
9595

9696

9797
###CSS
@@ -111,10 +111,9 @@ Stands for Document Object Model. It defines the logical structure of documents
111111

112112
###scope
113113

114-
Scope is the set of variables, objects, and functions that you can access
114+
Scope is the set of variables, objects, and functions that you can access.
115115

116116

117117
###console
118118

119119
A method of interacting with the system. In order to write to the browser console, you could use console.log(‘Hello World’). This would write Hello World in the browser console.
120-

index.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
<section>
1818
<h1>Hello everyone. Let's do some interactive coding today! </h1>
1919
<div class="settings">
20-
<p>To open browser console do double click on the screen (or press
20+
<p>To open the browser console, double click on the screen (or press
2121
<i>'Command+Option+J'</i> on mac and <i>'F12'</i> on Windows) and console
22-
will appear on the bottom or on the right side of the screen. It will work
23-
for Chrome and Firefox after select <i>'Inspect'</i>.
22+
will appear at the bottom or on the right side of the screen. It will work
23+
for Chrome and Firefox after selecting <i>'Inspect'</i>.
2424
</p>
2525
<p>For Safari, go to <i>'Safari > Preferences > Advanced >
26-
and tick the box Show Develop menu in menu bar'</i>, restart Safari, now you can
27-
do double click on the page and select <i>'Inspect Element'</i> to see console.
26+
and tick the box Show Develop menu in menu bar'</i>, restart Safari, and now you can
27+
double click on the page and select <i>'Inspect Element'</i> to see the console.
2828
</p>
2929
</div>
3030
</section>
@@ -45,4 +45,4 @@ <h1>Hello everyone. Let's do some interactive coding today! </h1>
4545
<script src="js/level1.js"></script>
4646

4747
</body>
48-
</html>
48+
</html>

0 commit comments

Comments
 (0)