Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions README.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -463,7 +463,7 @@ end
Eat


### Conditional Operators : == , >= ,<= ,!=, !
### Conditional Operators : == , ===, >= ,<= ,!=, !



Expand All@@ -473,11 +473,20 @@ end




false



```ruby
Integer === 21
```



true




```ruby
5*4 == 4*5
Expand DownExpand Up@@ -779,13 +788,13 @@ Arrays are continuous data structures
```ruby
a = []
a[45] = 5
puts a
p a
```

[nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 5]


a[45] = 0, created 45 empty spaces and then added 5 at 45th index. Indexing starts from zero.
a[45] = 5, created 45 empty spaces and then added 5 at 45th index. Indexing starts from zero.


```ruby
Expand DownExpand Up@@ -1092,7 +1101,7 @@ puts join_words ["Ruby","is","flexible"]
Ruby is flexible


What is you want to pass a variable number of arguments and you don't want to pass an array.
What if you want to pass a variable number of arguments and you don't want to pass an array.

Voila, we have *args arguement.

Expand Down