Posts

Showing posts from November, 2018

What is JavaScript Variable

Image
In this article, we are reading about “ What is JavaScript Variable “. A  JavaScript variable  is simply a name of the storage location. There are two types of variables in JavaScript: local variable and global variable. There are some rules while declaring a JavaScript variable (also known as identifiers). The name must start with a letter (a to z or A to Z), underscore( _ ), or dollar( $ ) sign. After the first letter, we can use digits (0 to 9), for example, value1. JavaScript variables are case sensitive, for example x and X are different variables. A real-life analogy We can easily grasp the concept of a “variable” if we imagine it as a “box” for data, with a uniquely-named sticker on it. For instance, the variable message can be imagined as a box labeled  “message”  with the value  “Hello!”  in it: We can put any value into the box. Also, we can change it. The value can be changed as many times as needed: 1 2 3 4 let m...

How the brain switches between different sets of rules

Image
In this article, we are reading about  “How the brain switches between different sets of rules ”. When you slow down after exiting the highway, or hush your voice in the library, you’re using this brain mechanism. Cognitive flexibility — the brain’s ability to switch between different rules or action plans depending on the context — is key to many of our everyday activities. For example, imagine you’re driving on a highway at 65 miles per hour. When you exit onto a local street, you realize that the situation has changed and you need to slow down. When we move between different contexts like this, our brain holds multiple sets of rules in mind so that it can switch to the appropriate one when necessary. These neural representations of task rules are maintained in the prefrontal cortex, the part of the brain responsible for planning action. A new study from MIT has found that a region of the thalamus is key to the process of switching between the rules required for differ...

How to send SMS message in Android

Image
In this article we will learn about  “How to send SMS message in Android ”,  What is the process to send SMS message in Android, SMS sending step by step in Android. In Android, you can use  1 SmsManager  API or device’s  1 Built-in SMS  application to send a SMS message. In this tutorial, we show you two basic examples to send SMS message : 1. SmsManager API 1 2        SmsManager smsManager <span class="token operator">=</span> SmsManager<span class="token punctuation">.</span><span class="token function">getDefault</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>     smsManager<span class="token punctuation">.</span><span class="token function">sendTextMessage</span><span class="token punctuatio...