- Go to https://git-scm.com download the installer and install it leaving everything by default (you can check that it was successful via windows console with the
git --version
command). - Run windows console via
cmd
command and go to the project root folder (or run it from that folder). - Execute the
git init
command (it will create the ".git" hidden folder inside your project folder). - Run the
git status
command to check that nothing has been added to Git yet. - To make some files (or folders) be tracked by Git run the
git add filename.fileext
command (you can rungit status
after to check whether the file has been added and ready to be commited). - Add to the project root folder a new file called
.gitignore
. It should be a text file. Open it and write to it all files and folder (each one on a new line) you want to be ignored by Git. For example:node_modules/
- Add the
.gitignore
file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class jobImpl{ | |
// public | |
constructor(name){ | |
this.name = name; | |
} | |
// public | |
do(time){ | |
console.log(`${this.name} started at ${time}`); | |
this.prepare(); | |
this.execute(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Function vs eval pefromance</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |
OlderNewer