Javascript coding for beginners


#1
var web = [ {url : "www.lboro.ac.uk",  content : "Loughborough University offers degree programmes and world class research." } , {url : "www.xyz.ac.uk",  content : "An alternative University" } , {url : "www",  content : "Yet another University" } ]

I need help coding for a function scores(web,pattern) that returns an array of scores (each score is the number of times that pattern occurs in a content part in the arrayweb)


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.