-5

I am trying to reduce the length of the text that I have requested from

the API with the 'slice' method. but it is throwing an error of

'Cannot read property 'slice' of undefined.

enter image description here

enter image description here

1

1 Answer 1

0

Cannot read property 'slice' of undefined means that your jobDetails.job_description property is not of type string, but of type undefined at runtime. Make sure you have that property at least defined as an empty string.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.