here the function is not executed, instead the function is stored inside
hello, to be used later. To call the function one needs to do
hello() and this will return
in the screenshot you defined there are two things going on that may confuse you: there is a method being defined, the
filteredBlogs is a function created in an object, so it is a method of that object.
Inside this method there is the
filter method used on
this.blogs, the filter method takes a function as argument, and returns an array containing a part of the arrays in the array on which it is used: each element of the starting array is checked using the function passed in to the filter method, and if it returns true, it is kept, if it returns false it is not kept
If you feel that if you’re not getting the instruction and material you need in your current studies, the FCC curriculum will really help you get started. At a modest guess I’d say investing a 4-5 hours working through the curriculum here will really pay off. You can find the curriculum at https://www.freecodecamp.org/learn.