a) Explain what is meant by the functional programming term higher-order function. (3 marks) (4 marks) b) Compare JavaSc
Posted: Fri Jul 01, 2022 5:33 am
1 const electiveOne ( courseCode: "ELEN4010", yearoffered: 4 const elective Two = { courseCode: 'ELEN4001", yearoffered: 4 } const electiveThree = { courseCode: 'ELEN4020", yearoffered: 4 } } const electiveFour ( courseCode: 'ELEN4017', yearoffered: 4 let students [ ( }, { }. ( }. ( } name: "Kwezi", student Number: 453528, yearofstudy: 4, electives: [electiveOne, electiveTwo, electiveFour) name: 'Pieter", student Number: 454345, yearOfStudy: 3, electives: [electiveOne) name: 'Jade", studentNumber: 678345, yearOfStudy: 4, electives: [elective Two, electiveThree, electiveFour] name: 'Kiren", student Number: 567893, yearOfStudy: 4, electives: [electiveOne, electiveTwo, elective Three] Listing 1: Students and their electives