diff --git a/README.md b/README.md index 5db33d4..1ea04dd 100644 --- a/README.md +++ b/README.md @@ -463,7 +463,7 @@ end Eat -### Conditional Operators : == , >= ,<= ,!=, ! +### Conditional Operators : == , ===, >= ,<= ,!=, ! @@ -473,11 +473,20 @@ end - false +```ruby +Integer === 21 +``` + + + + true + + + ```ruby 5*4 == 4*5 @@ -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 @@ -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.