<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: jC-blip-ux</title>
    <description>The latest articles on DEV Community by jC-blip-ux (@jcblipux).</description>
    <link>https://dev.to/jcblipux</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F717649%2Ffcf474b1-fb6d-40c4-85df-087307050bfb.png</url>
      <title>DEV Community: jC-blip-ux</title>
      <link>https://dev.to/jcblipux</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jcblipux"/>
    <language>en</language>
    <item>
      <title>What is a Web API in JS? </title>
      <dc:creator>jC-blip-ux</dc:creator>
      <pubDate>Wed, 24 Nov 2021 07:05:00 +0000</pubDate>
      <link>https://dev.to/jcblipux/what-is-a-web-api-in-js-jc0</link>
      <guid>https://dev.to/jcblipux/what-is-a-web-api-in-js-jc0</guid>
      <description>&lt;p&gt;A Web API is an ultimate developer goal which can help increase the functionality of the browser, making it more efficient and friendly in its own kind.&lt;br&gt;
The most complex functions and readability can be managed by simplifying with the use of API's.&lt;br&gt;
Easy syntax can be brought into consideration, as it has been a task to work upon complex code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;An API?&lt;/strong&gt;&lt;br&gt;
API stands for Application Programming Interface.&lt;br&gt;
It can be considered to be part of either a Web, Browser or Server as mentioned can provide the functionality to a web browser.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A Web API is an application programming interface for the Web.&lt;/p&gt;

&lt;p&gt;A Browser API can extend the functionality of a web browser.&lt;/p&gt;

&lt;p&gt;A Server API can extend the functionality of a web server.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Third Party APIs&lt;br&gt;
Third party APIs are not built into your browser. These are also used as an extension and can be downloaded from the web of an already existing platform supporting API's&lt;/p&gt;

&lt;p&gt;To use these APIs, you will have to download the code from the Web.&lt;/p&gt;

&lt;p&gt;Examples:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;YouTube API - Allows you to display videos on a web site.&lt;br&gt;
Twitter API - Allows you to display Tweets on a web site.&lt;br&gt;
Facebook API - Allows you to display Facebook info on a web site.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;To fetch an API from a file&lt;br&gt;
We can come across this with an example, given below:&lt;/p&gt;

&lt;p&gt;A Fetch API Example&lt;br&gt;
The example below fetches a file and displays the content:&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fetch(file)
.then(x =&amp;gt; x.text())
.then(y =&amp;gt; myDisplay(y));
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Since Fetch is based on async and await, the example above might be easier to understand like this:&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;async function getText(file) {
  let x = await fetch(file);
  let y = await x.text();
  myDisplay(y);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or even bettter: Use understandable names instead of x and y:&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;async function getText(file) {
  let myObject = await fetch(file);
  let myText = await myObject.text();
  myDisplay(myText);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We can also add API's from our own History!&lt;/p&gt;

&lt;p&gt;The Web History API provides easy methods to access the &lt;code&gt;windows.history&lt;/code&gt; object.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;window.history&lt;/code&gt; object contains the URLs (Web Sites) visited by the user.&lt;/p&gt;

&lt;p&gt;The History back() Method &lt;/p&gt;

&lt;p&gt;The back() method loads the previous URL in the windows.history list.&lt;/p&gt;

&lt;p&gt;the "back arrow" in your browser can also be used as an alternative.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;button onclick="myFunction()"&amp;gt;Go Back&amp;lt;/button&amp;gt;

&amp;lt;script&amp;gt;
function myFunction() {
  window.history.back();
}
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>JavaScript - Strict Mode</title>
      <dc:creator>jC-blip-ux</dc:creator>
      <pubDate>Wed, 24 Nov 2021 06:33:55 +0000</pubDate>
      <link>https://dev.to/jcblipux/javascript-strict-mode-1091</link>
      <guid>https://dev.to/jcblipux/javascript-strict-mode-1091</guid>
      <description>&lt;p&gt;The "use strict"; Defines that JavaScript code should be executed in "strict mode".&lt;br&gt;
Why Strict Mode?&lt;br&gt;
Strict mode makes it easier to write "secure" JavaScript.&lt;/p&gt;

&lt;p&gt;Strict mode changes previously accepted "bad syntax" into real errors.&lt;/p&gt;

&lt;p&gt;As an example, in normal JavaScript, mistyping a variable name creates a new global variable. In strict mode, this will throw an error, making it impossible to accidentally create a global variable.&lt;/p&gt;

&lt;p&gt;In normal JavaScript, a developer will not receive any error feedback assigning values to non-writable properties.&lt;/p&gt;

&lt;p&gt;In strict mode, any assignment to a non-writable property, a getter-only property, a non-existing property, a non-existing variable, or a non-existing object, will show an error.&lt;/p&gt;

&lt;p&gt;The "use strict" directive was new in ECMAScript version 5.It is not a statement, but a proper expression, which was ignored by earlier versions of JavaScript.&lt;/p&gt;

&lt;p&gt;The purpose of this is to indicate that the code should be executed in only "strict mode".&lt;/p&gt;

&lt;p&gt;With strict mode, you can not, for example, use undeclared variables.&lt;/p&gt;

&lt;p&gt;All modern browsers support "use strict" except Internet Explorer 9 and lower: Such as google chrome, firefox, opera.. etc&lt;/p&gt;

&lt;p&gt;While Declaring Strict Mode: &lt;/p&gt;

&lt;p&gt;Strict mode is declared by adding "use strict"; to the beginning of a script or a function.&lt;/p&gt;

&lt;p&gt;It has global scope meaning, all lines in the code will execute in strict mode-&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"use strict";
x = 3.14;       // This will cause an error because x is not declared

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Another similar example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"use strict";
myFunction();

function myFunction() {
  y = 3.14;   // This will also cause an error because y is not declared
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;x = 3.14;       // This will not cause an error.
myFunction();

function myFunction() {
  "use strict";
  y = 3.14;   // This will cause an error
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Using an object, without declaring it, is not allowed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"use strict";
x = {p1:10, p2:20}; 
     // This will cause an error
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Deleting a variable (or object) is not allowed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"use strict";
let x = 3.14;
delete x;                // This will cause an error
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Similarly,&lt;br&gt;
Duplicating a parameter name is not allowed&lt;br&gt;
Octal numeric literals are not allowed&lt;br&gt;
Octal escape characters are not allowed&lt;br&gt;
Writing to a read-only property is not allowed&lt;br&gt;
The word arguments cannot be used as a variable&lt;br&gt;
The with statement is not allowed&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>tutorial</category>
      <category>strictmode</category>
    </item>
    <item>
      <title>JavaScript and its DataTypes</title>
      <dc:creator>jC-blip-ux</dc:creator>
      <pubDate>Sat, 02 Oct 2021 07:55:08 +0000</pubDate>
      <link>https://dev.to/jcblipux/javascript-and-its-datatypes-2bip</link>
      <guid>https://dev.to/jcblipux/javascript-and-its-datatypes-2bip</guid>
      <description>&lt;p&gt;JavaScript has data types to hold different types of values. And the two types of data types in JavaScript are:&lt;/p&gt;

&lt;p&gt;Primitive data type&lt;br&gt;
Non-primitive (reference) data type&lt;/p&gt;

&lt;p&gt;JavaScript is a dynamic type language, means you don't need to specify type of the variable because it is dynamically(accepting in real-time) used by JavaScript engine. We need to use var here to specify the data type. It can hold any type of values such as numbers, strings etc.&lt;br&gt;
 For example:&lt;br&gt;
var a=80; //holds the number&lt;/p&gt;

&lt;p&gt;var b="Sam";//holds the string&lt;/p&gt;

&lt;p&gt;The five type available are:&lt;br&gt;
 tring&lt;br&gt;
number &lt;br&gt;
boolean&lt;br&gt;
undefined&lt;br&gt;
null&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Visual Studio Code: </title>
      <dc:creator>jC-blip-ux</dc:creator>
      <pubDate>Sat, 02 Oct 2021 07:39:43 +0000</pubDate>
      <link>https://dev.to/jcblipux/visual-studio-code-21oo</link>
      <guid>https://dev.to/jcblipux/visual-studio-code-21oo</guid>
      <description>&lt;p&gt;Visual Studio Code: It is an open source-code editor that uses programming languages such as Java, c++, python etc. It uses top extensions like enable additional languages, themes, debuggers, commands, and much more. It allows one to test code, confidently.It is more stream-lined and by providing quick code, debug to full IDE. It also runs on web applications like Windows, Linux, and macOS.&lt;/p&gt;

&lt;p&gt;This helps in understanding the structure of the IDE which can help us understand such platforms better and implement quick code in real-time. Many sections cover different functionalities and help progress our projects with ease and short-cut methods.&lt;/p&gt;

&lt;p&gt;The VS Code is divided into five main regions:&lt;/p&gt;

&lt;p&gt;The activity bar&lt;br&gt;
The side bar&lt;br&gt;
The Editor groups&lt;br&gt;
The panel&lt;br&gt;
The status bar&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
