Jumpstart
This lesson is optional. It walks you through how to create a gist directly from VS Code.
First we'll install an extension which can let us post code samples to github.
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
| SYMBOLS = ["@", "%", "&", "*"] | |
| has_special_character = false | |
| has_number = false | |
| long_enough = false | |
| until has_number && long_enough && has_special_character | |
| puts "Please enter your password." | |
| puts "Your password must have a number," |
| const captainMarvel = { | |
| givenName: 'Carol Danvers', | |
| nickname: 'Vers', | |
| age: 41, | |
| sideburns: false, | |
| affiliations: ["The Avengers", "S.H.I.E.L.D.", "The Starjammers"], | |
| fly() { | |
| console.log('zoom!'); | |
| console.log('swish!'); | |
| console.log('fweeee!'); |
| const coffeePrice = function coffeePrice(isIced, size, flavorArray){ | |
| let price = 2.50; | |
| if(size == 0){ | |
| ; | |
| } else if (size == 1) { | |
| price += 1; | |
| } else { | |
| price *= 2; | |
| } |
| def coffee_price is_iced, size, flavor_array | |
| price = 2.50 | |
| if size == 0 | |
| elsif size == 1 | |
| price += 1 | |
| else | |
| price *= 2 | |
| end |