List vs Set
List > Ordered and Indexed Collection, May contain duplicates
Set > Collection of Unique values, not ordered, no indexing
List vs Set
List > Ordered and Indexed Collection, May contain duplicates
Set > Collection of Unique values, not ordered, no indexing
difference between java and javascript
java is virtualised and compiled while javascript isn't.
javascript and java aren't that similar apart from beign
both OOP.
Ruby difference between for and .each
# They are both similar in function, however the for loop will retain a variable.
# FOR Example:
nums = [1,2,3]
for n in nums
puts n
end
=> 1 2 3
# If you ask what is n, n outputs the last assignment from the function.
n => 3
# EACH Example:
nums.each do |i|
puts i
end
=> 1 2 3
# If you ask what is i.
i => NameError (undefined local variable or method `i' for main:Object)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us