Array question- need to check off elements in the array
I have 2 arrays, I’m trying to fill in a table and check off (true false) for tasks. ie task =[ take out the trash, wash the dishes, mow the lawn] the other array of user are assigned tasks ; ie Fred...
View ArticleArray question- need to check off elements in the array
Hey Joe, You can use the ‘include?’ method from Ruby. It checks whether a specific item is included in an array or not. See the example below. tasks = ['take out the trash', 'wash the dishes', 'mow...
View Article
More Pages to Explore .....