Just wanted some help on how I could use the following code to timeout after 5 seconds. Context: This is a Branch.io banner ad and I'm trying to program in such a way that the ad banner closes automatically after 5 seconds. The relevant part of the documentation is given below and I'm new to coding.
‘branch.closeJourney(function(err) { console.log(err); });’
More details here: https://blog.branch.io/7-advanced-controls-to-help-you-optimize-your-journeys/
Thanks for your help!