Would like to to display the word shahi as able to display first-word amrit after ”, is there any way to display last word using code. help appricated. Output: [‘a’, ‘m’, ‘r’, ‘i’, ‘t’] likewise i would like to display shahi if i console log. Answer You should have two control structures: The result array A buffer to store sub-words
Tag: facebook-javascript-sdk
How to write multi-line scripts in Pug and Facebook JS SDK
I’m trying to include a multi-line JavaScript function inside the script tag within my layout pug template. It needs to run in the script tag, i.e. it has to be done this way and cannot be passed into the template as a value, since it’s client-side logic within a node app. This is the equivalent in vanilla HTML: Since I’m
How to retrieve all posts of a user via Facebook Graph API using promises and recursion?
I am currently developing a web app which uses the Facebook Graph API. What I would like to achieve is to get all posts of a user. However, this is not that easy since I have to paginate the results. At the moment I am struggeling with promises. What I try to achieve is to fill an array with the
Implement Facebook API login with reactjs
I’m working on using Facebook’s Javascript SDK for authentication. I’ve been able to import the SDK properly and put a Like button on my page. But, the facebook login button has to be wrapped in the tag: I currently have all of the code from the Facebook Login tutorial pasted into my index.html, the only html file in my project,