Great thanks for usefull remarks. However, i’m sorry, any success, completely lost in just three words. Evidently, it is a luck of systematic knowledge. Logically everythings is clear, practically unable to apply it.
Hi, I apperciate your feedback, it is especially usefull and motivating for me at the moment.
As you probably noticed, I’ve stuck over an elementary things. That’s because I am distracted doing this exercise along with going through learning process of theory materials of this course. It’s important for me at the moment to create a solid base knowledge as far as it possible for beginner to aproach tasks more or less adequately, as well as mixing it up with practice.
I like your idea to go further in this regards, to extend evaluation of tests scores and to improve code in such way, forthermore, initially i had some thoughts of extending this exercise in this way.
I’ll be back in short time, after absorbing portion of general theory , with some proposal of mentioned above code development .
This error indicates an infinite loop or circular reference. I don’t think you’ll have any luck getting the “full code solution” on the forum. There are many of us who are glad to help, if you’ll post your code, but giving out solutions to exercises is a no, no. If you would like help, and choose to post your code, please click the </> button in the menu bar first. Then paste your code in the space indicated. It will preserve your formatting, and make it possible for us to copy and run your code ourselves to help you work through the issues.
Please can someone help me understand how to create a SchoolCatalog that holds the collection of schools under the extra work at step 19 so you can display all the different schools under one class?
I just can’t figure it out. I don’t know if the info is stored within the class itself or if it can only be accessed via the instances? Would it require a new method within the SchoolCatalog that would grab the info from the other classes?
When creating a new SchoolCatalog instance do you directly reference the classes themselves or just the other instances you created?
I feel there is a simple solution but it’s completely evading me, I’m absolutely stumped. TIA.
I’m curious as to why this project instructed us to generate the random number to be one less than the substituteTeachers array, and also what is the purpose of the console.log in the sportsTeam getter?
If we didn’t specify that the random number to be used as the index for selecting a random substitute teacher had to be in the range of 0 to 3 (the maximum possible is one less than the length of the array) we could end up with an index of 4. If we try to select subs what do we get?
While the students might enjoy having undefined for a substitute teacher, I don’t think the school administrators or the parents would approve.
The purpose of console.log() is always the same. Print something to the console. This project allows you some freedoms. You click off the steps as you complete them. When I did this one, I did not use console.log() in the getter. It seemed inconsistent to me, so I returned a string that contained the sports teams. In the end it doesn’t really matter that much if the getter prints the teams, or returns a string for the caller to print (ie. console.log(someSchool.sportsTeams)).