This file contains hidden or 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
| Details at: https://aleksandar.xyz/blog/formatting-ruby-and-erb-in-vscode/ | |
| "files.associations": { | |
| "*.erb": "erb" | |
| }, | |
| "[erb]": { | |
| "editor.formatOnSave": true, | |
| "editor.defaultFormatter": "aliariff.vscode-erb-beautify", | |
| } |
This file contains hidden or 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
| function foo(role, level) { | |
| console.log(`Your role is ${role} and your level is ${level}.`); | |
| console.log(this); | |
| } | |
| foo(); | |
| var person = { | |
| name: 'Julie' | |
| }; |
This file contains hidden or 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
| // Fluent api | |
| function Chai() {} | |
| Chai.prototype.expect = function(number) { | |
| this.number = number; | |
| return this; | |
| }; | |
| Chai.prototype.increment = function() { |
NewerOlder