In the category of creative Theory Machine buttons:
- ifSixWasNine, by Jared Hendricks (a.k.a. "Jimi" ;-)
alert(ifSixWasNine(6)) ==> 9
alert(ifSixWasNine(12)) ==> 18
Image by TisseurDeToile -[*] via Flickr
//process all words in sentence
for(var i = 0; i < arr.length; ++i)
//result = result + encode(arr[i]) + ' '
arr[i] = encode(arr[i])
//check words
//not quite there yet..
while(isPalindrome(arr[i]) && i < arr.length){
++i
}
//determine result
if(i == arr.length)
//every word is a pal
else
//not all words are pals
Image via Wikipedia
HTML includes two types of Style Tags: