This file contains 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
[22:23:08] Interface\AddOns\tekAuc\tooltips.lua:18: attempt to index field 'manualprices' (a nil value) | |
[C]: ? | |
Interface\AddOns\tekAuc\tooltips.lua:18: in function <Interface\AddOns\tekAuc\tooltips.lua:7> | |
[C]: in function `SetBagItem' | |
Interface\FrameXML\ContainerFrame.lua:815: in function `ContainerFrameItemButton_OnEnter' | |
[string "*:OnEnter"]:1: in function <[string "*:OnEnter"]:1> |
This file contains 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
var legalDrivingAge = 18; | |
var canIDrive = function (myAge) { | |
if (myAge >= legalDrivingAge) | |
return true;} | |
else{return false;} | |
canIDrive (18) |
This file contains 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
var yourName = ""; | |
var gender = "male"; | |
var result; | |
//Line 10 starts an if statement | |
//Nested in this if statement is an if else statement on lines 11 - 15 | |
//This nested if else statement allows us to check another condition | |
//We close the first if statement at the start of line 16 | |
if (yourName.length >0 && gender.length >0) { |
This file contains 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
var yourName = ; | |
var gender = ; | |
var result; | |
//Line 10 starts an if statement | |
//Nested in this if statement is an if else statement on lines 11 - 15 | |
//This nested if else statement allows us to check another condition | |
//We close the first if statement at the start of line 16 | |
if () { |
This file contains 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
var isOdd = function (n) { | |
if(n%2===0) | |
return false; | |
else | |
return true; | |
} | |
var isEven = function (n) { | |
return !isOdd(n); | |
}; | |
isOdd (10); |
This file contains 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
var i=0; | |
while (i<2) { | |
console.log("hello"); | |
i++; | |
} | |
//or? | |
var i = 0; | |
while ( i < 2 ) { |
This file contains 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
puts "What city do you live in?" | |
city = gets.chomp | |
puts "what state?" | |
state = gets.chomp | |
puts city + " is a shit hole, and " + state + " is full of assholes" |