Skip to content

Commit

Permalink
new add
Browse files Browse the repository at this point in the history
  • Loading branch information
migmoroni committed Sep 26, 2023
1 parent d13b4a9 commit 3cc6f20
Show file tree
Hide file tree
Showing 6 changed files with 297 additions and 127 deletions.
8 changes: 1 addition & 7 deletions Languages/Javascript/test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
num_int = 5

num_String = "5"

numResult = num_int + num_String

console.log(numResult)
console.log(true and false)
40 changes: 6 additions & 34 deletions Languages/Ruby/test.rb
Original file line number Diff line number Diff line change
@@ -1,34 +1,6 @@
puts true && true, true && false, false && true, false && false

#ou
puts true || true, true || false, false || true, false || false

#não
puts !true, !false

#and (curto-circuito)
puts (true and true), (true and false), (false and true), (false and false)

#or (curto-circuito)
puts (true or true), (true or false), (false or true), (false or false)

#not (curto-circuito)
puts (not true), (not false)

#e (Bit a Bit)
puts (10 & 3)
#1010 & 0011 = 0010

#ou (Bit a Bit)
puts (10 | 3)
#1010 | 0011 = 1011

#não (Bit a Bit) - Positivo
puts (~ 10), (~ 3)
#0 1010 -> 1 0101
#0 0011 -> 1 1100

#não (Bit a Bit) - Negativo
puts (~ -10), (~ -3)
#
#
def salutation(func_var_string = "Mundo")
puts "Olá, #{func_var_string}!"
end

salutation
salutation("Jabuti")
Empty file added Pages/Portugues/02/00/Java.md
Empty file.
Loading

0 comments on commit 3cc6f20

Please sign in to comment.