JavaScript Task

Job ID: 36398455

Budget: £10 – £20 GBP

hello, I am looking to complete this task

https://wrextdesign.william-reed.com/tests/practical/index.html

Overview:
You are working on implementing the Adobe Datalayer on the URL. To finish the
implementation, you will need to:
1. Write a javascript function that counts the words of the article only (not the comments) and
updates DataLayer.article_data.word_count accordingly.
2. Understand why DataLayer.journey_data.is_mobile isn’t working and fix as appropriate.
3. Declare DataLayer.article_data.original_article as true when window.location.href matches
the content of DataLayer.journey_data.canonical_url

Pointers:
 The datalayer is stored under a javascript variable named DataLayer
 DataLayer.article_data.word_count should return an integer.
Related categories: JavaScript CSS HTML5 HTML jQuery / Prototype