Unexpected token 'return'

I run the code of the assignment after filling the blanks as shown below

[code removed - moderator]

and I get this error

thanks in advance,

Sorry i haven’t taken this specialization…can you tell me which language it is?
It doesnt seem to be python
Is it matlab?

1 Like

the language is javascript

Sorry i am not well versed with JS
I will try to solve if possible else i will push it to my fellow mentors

1 Like

I’ll be waiting,
much appreciated!

1 Like

@mirak Please click my name and message your javascript file containing getModel() as an attachment.

1 Like

Could a TF - Data and Deployment mentor please take a look at this? getModel and train look alright to me.

1 Like

hello @mirak @balaji.ambresh i got same issue with mirak. can you help me to fixed it?

Hi @Umul_Syarifah,
I’m not a mentor for this specialization at this point. So, please reach out to someone who is mentoring this course.

You’ll see a tag alongside their name that mentions that they are a mentor. Here’s the community user guide to get started.

Cheers

oke, thank you mr. balaji
but i don’t know who is the mentor because i didn’t find list of mentor’s name. can you tell me please? i have checked in community user guide too

I’ve asked the staff to help you on this. Good luck.

how about save the code? it is possible that code error because not saved? but i cannot save the code. please anyone can help me i get stuck for this

hello, i’ve passed in this week. i try write the code in vs code and automatically save in brackets then run it in web server. maybe you can try if you stuck