#Programming Manifesto
##Books
Ruby
- Learn to Program by Chris Pine
- The Well-Grounded Rubyist by David Black
- Eloquent Ruby by Russ Olsen
- Practical Object-Oriented Design in Ruby by Sandi Metz
#Programming Manifesto
##Books
Ruby
function calculateDamage(yourType, opponentType, attack, defense){ | |
var type = { | |
fire:0, | |
water:1, | |
grass:2, | |
electric:3 | |
}; | |
var effectivenessTable = [[0.5,0.5,2,1],[2,0.5,0.5,0.5],[0.5,2,0.5,1],[1,2,1,0.5]]; |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |