Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const cutTitle = (result) => {
- if (result.length > 17) {
- let srt = result;
- let strTitle = srt.substring(0, 17)
- return strTitle + "..."
- } else {
- return result
- }
- }
- resutl = `<h1>${cutTitle(movie.title)} </h1>`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement