Javascript: Map object & Loop

A Javascript Map object holds the key-value pairs of elements. An array or any other iterable object can be passed to the Map. – Map is a new data structure introduced in JavaScript ES6. – It’s an alternative to JavaScript Object for storing key/value pairs. – It has useful methods for iteration over the key/value … Read more

Javascript: Object & Loop

This article deals with creating a Javascript object and using different functions on the object. We also see how we can loop through the object and get the values. Create a new Javascript Object var myObject = { fruit: 'apple', flower: 'rose', vegetable: 'cabbage' }; console.log(myObject); // {fruit: "apple", flower: "rose", vegetable: "cabbage"} Access elements … Read more

Javascript: Check if a variable is an Array

This article shows how you can check if a Javascript variable is of an Array type. There are different ways to check if a variable is an Array in Javascript. 1) First way // define an array var myArray = [11, 'John']; console.log(Object.prototype.toString.call(myArray)); // [object Array] // check if the variable is an array if … Read more

Javascript: Check if a variable is an Object

This article shows how you can check if a Javascript variable is of an Object type. There are different ways to check if a variable is an Object in Javascript. 1) First way // define an object var myObject = {id: 11, name: John} console.log(Object.prototype.toString.call(myObject)); // [object Object] // check if the variable is an … Read more

Javascript: Multi-dimensional Array & Loop

This is a beginner tutorial on working with Javascript multi-dimensional arrays and looping through them. Javascript Array is a list-like object. It is used to store multiple values in a single variable. This article deals with creating a multi-dimensional Javascript array and using different functions on the array. We also see how we can loop … Read more

Javascript: Array & Loop

This is a beginner tutorial on working with Javascript arrays and looping through them. Javascript Array is a list-like object. It is used to store multiple values in a single variable. This article deals with creating a Javascript array and using different functions on the array. We also see how we can loop through the … Read more

Python: Twitter Sentiment Analysis on Real Time Tweets using TextBlob

This article shows how you can perform Sentiment Analysis on Twitter Real-Time Tweets Data using Python and TextBlob. I have written one article on similar topic on Sentiment Analysis on Tweets using TextBlob. In that article, I had written on using TextBlob and Sentiment Analysis using the NLTK’s Twitter Corpus. In this article, we will … Read more

Python: Twitter Sentiment Analysis using TextBlob

This article shows how you can perform Sentiment Analysis on Twitter Tweet Data using Python and TextBlob. TextBlob provides an API that can perform different Natural Language Processing (NLP) tasks like Part-of-Speech Tagging, Noun Phrase Extraction, Sentiment Analysis, Classification (Naive Bayes, Decision Tree), Language Translation and Detection, Spelling Correction, etc. TextBlob is built upon Natural … Read more

Python: Get Twitter Tweets using ‘Get Old Tweets’ Package

This article shows how you can get/fetch Tweets from Twitter API using a very useful Python package named “Get Old Tweets“. You can perform different tasks using the GetOldTweets, like: – Searching Tweets of any particular user and between any dates – Searching Tweets for any particular hashtag or any text and between any dates … Read more