6 followers
Frontend Developer living in Toronto
Before 'const' and 'let' introduced, 'var' had been used for declaring variables. It caused a lot of issues. We understand we should not use the 'var' anymore. But why? Let's find out the reason through a simple example. let let age = 20; let canDri...
JSON(JavaScript Object Notation) is very useful when you work with data. The first thing we should know is how to convert an object to JSON and a JSON to an object. There is a simple way to do it. stringify (Object -> JSON) const person = { name...
How can I get an indefinite number of arguments as an array in a function? First, I will try this way. const printAll = (args) => { console.log(args); }; printAll(1, 3, 5, 7, 10); I can get only the first argument of the array. That's not wha...
We can mark specific points on a repository's history by using a tag. Especially, it is useful to mark the release version. Create a tag $ git tag [tag name] [hash] ex) $ git tag v1.0 9de015c If you use git tag [tag name] without a hash name, a tag...
The Log command has options that you can filter the commit history, so it helps you to work on the project more efficiently with your team members. You can search the specific commit history by author, date, message, code, and file. By author $ git ...
Git Log command is very useful to manage the version of the project. In order to check the commit history of the project, you can use the command. $ git log When you use the below command, you can check a simple version. $ git log --oneline // ...