Numbers, Strings, Booleans



Ruby programming, information (data) can come in three different types of things,

one, two, true, ( " I'm learning Ruby!!!"),

analyze, manipulate, confusing,

never use ( ' or " ) with Booleans or ruby will think your talking about a string, (word or phrase)

instead of a value that can bee true, or false, it's also important to remember about capitalizing,

set variable to value =

my_num = 33, analyzing...

math... 6 arithmetic operators

Addition (+)

Subtraction (-)

Multiplication ( * )

Division ( / )

Exponential ( ** )

Modulo ( % )

33**1 assigning,

puts & print,

puts " hello world, I love new York"

print "hey fuck you"... off, ass, my laughing,

amazing...

next, string,

methods, skills, everything is an object interpreter, program code console, think,

" I love programming Ruby you little gem, it sends a new end to my thread."

. length

# ==> 72, 9 blinks,

.downcase shrinks,

.upcase leaps,

puts "racecar" .reverse.upcase.downcase, the same... sheesh...

Next: Writing good code -> What a beast,

mind feast,

with ease, single line comments-

# I'm a full line comment

"west".length # I'm a comment too! written east,

for ('4') multi-line comments,

=begin

I'm a comment!

I don't need any # symbols.

=end

police,

local variables, counter masterful_methods, symbols, $, CaPiTaL LeTTers, @ fear, diseased,

My_name = "goego"

My_age = 33

healthy = true

-sum equal to, 13 + 379

-product equal to, 923 * 15

-quotient equal to 13209 / 17

sum = 13 + 379

product = 923*15

quotient = 13209 / 17

777 - pleased,

Comments??? Well then, follow this link _ STING _ to bee on the very brink of learning code, ...FOR FREE!!!

Comments

No comments yet.

    Sign in or sign up and post using a HubPages Network account.

    0 of 8192 characters used
    Post Comment

    No HTML is allowed in comments, but URLs will be hyperlinked. Comments are not for promoting your articles or other sites.


    Click to Rate This Article
    working