简体   繁体   中英

I have a issue with an array when using Javascript

I have this problem and I keep putting them in the correct order but my application keeps saying it's wrong, this is all it is. The question is: Declare a variable education and assign it to an array containing the name of your college/university, field of study, and an integer which is your year of (anticipated) graduation. Make sure these elements are included in the initialized array in that order.

SO I have it like this var education = [Cerritos College, Computer Science, 2018]; I tried this way too! var education = ['Cerritos College', 'Computer Science', '2018']; Nothing works though.

That is all my code.

Year of graduation needs to be an integer, no quotes. Try this:

var education = ['Cerritos College', 'Computer Science', 2018];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM