Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5834ef3

Browse files
committed
update homework week 1
1 parent d4bd775 commit 5834ef3

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

Week1/MAKEME.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
>[Here](https://github.com/HackYourFuture/JavaScript/tree/master/Week1/README.md) you find the readings you have to complete before the second lecture.
44
5+
## How to hand in Homework:
6+
>steps:
7+
- Create a github account
8+
- Create a new repository (name it something like hyf-js) make sure you select the option: initialize with readme
9+
- Upload the file you created on your computer, write a description for this “commit”
10+
- Open the file in your readme to check if this all worked
11+
- Post the link here if it worked
12+
513
We covered a bit of command line usage in the first class and got a program running which is great. If you need a refresher for the command line please have a look here: https://github.com/HackYourFuture/CommandLine
614

715
## Before you start with the homework:

Week1/REVIEW.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# REVIEW JavaScript Basics week 1
22

3+
## CLI
4+
>pwd : present working directory
5+
ls : List files in the directory
6+
cd : change the directory
7+
touch: Create an empty file
8+
echo : display the string
9+
echo -n : Display the string without newline
10+
echo “something” > file : Redirect the output of echo and create file
11+
echo “another thing” >> file : Append the string to the file
12+
mkdir: make a new directory
13+
cd ~ : home
14+
cd - : previous directory
15+
cd .. : parent directory
16+
ls -a : List all files including hidden files
17+
cd / : change to the root directory
18+
cat : Concatenate the file line by line and display it on the terminal
19+
less: Print the big file line by line
20+
vim <file> : open the editor with <file> {a: to go to the insert mode, <ESC>:wq to write and quit }
21+
for var in {START..END}; do <COMMAND1>; <COMMAND2>;..; ; done
22+
head <file>: display the first 10 lines of file
23+
tail <file>: display the last 10 lines of file
24+
head -n <file> : display first n lines of file
25+
tail -n <file> : display last n lines of file
26+
man <COMMAND> : Display manual of the COMMAND
27+
328
## Variables
429

530
A "variable" is a place where you can store information, such as a string, or a number. New variables in JavaScript are declared using one of three keywords: let, const, or var.

0 commit comments

Comments
 (0)