See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func exampleNakedReturn(a, b int) (result int) { | |
| defer func() { | |
| // Modify the named return value 'result' before the function exits | |
| result += 10 |
| logMyName(); | |
| console.log("Name: ", myName); | |
| console.log("Surname: ", mySurname); | |
| let myName = "Orhan"; | |
| let mySurname = "Özkerçin"; | |
| function logMyName() { | |
| console.log("Name: ", myName); | |
| } |
| // Sılaşlar arasına kurallarımızı yazarak bir regex oluşturabiliriz. | |
| // Bu tanımlama türüne regex literal deniliyor. | |
| let regexLiteral = /ab+c/; | |
| // RegExp constructorunu çağırarak da bir Regular Expression oluşturabiliyoruz. | |
| let regexConstructor = new RegExp('ab+c'); |