<?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: ikechukwu1234</title>
    <description>The latest articles on DEV Community by ikechukwu1234 (@ikechukwu1234).</description>
    <link>https://dev.to/ikechukwu1234</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%2F1132043%2F64c747f2-0017-4948-a683-1c2b466e9403.png</url>
      <title>DEV Community: ikechukwu1234</title>
      <link>https://dev.to/ikechukwu1234</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ikechukwu1234"/>
    <language>en</language>
    <item>
      <title>Mouldes, Common j's module and ES module</title>
      <dc:creator>ikechukwu1234</dc:creator>
      <pubDate>Sun, 13 Aug 2023 15:52:55 +0000</pubDate>
      <link>https://dev.to/ikechukwu1234/mouldes-597f</link>
      <guid>https://dev.to/ikechukwu1234/mouldes-597f</guid>
      <description>&lt;p&gt;JavaScript modules: You can divide your JavaScript code into various files using modules. This makes maintaining a code base simpler. Modules also rely on the script&amp;gt; tag's type = "module" attribute. &lt;/p&gt;

&lt;p&gt;modules: is Just a file, a module.One module is one script. Modules can load one another and employ specialised directives in that manner. To exchange functionality, call functions from one module into another using export and import.&lt;/p&gt;

&lt;p&gt;The export keyword: Variables and functions marked with the export keyword should be used outside of the current module.&lt;/p&gt;

&lt;p&gt;The import keyword: enables the importation of features from other modules.&lt;/p&gt;

&lt;p&gt;Common j's module: The original method of packaging JavaScript code for Node.js was using Common J's module.&lt;br&gt;
Common j's all of the dependencies for project are stored in one file or together in one file called node modules.&lt;/p&gt;

&lt;p&gt;ES module: This standard, which debuted with ES6, was introduced in 2015. The goal was to provide these functionality in browsers while standardising how Js module operate&lt;/p&gt;

&lt;p&gt;ES module each dependency is stored in its files&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>react</category>
      <category>typescript</category>
    </item>
    <item>
      <title>Modules</title>
      <dc:creator>ikechukwu1234</dc:creator>
      <pubDate>Sun, 13 Aug 2023 13:52:49 +0000</pubDate>
      <link>https://dev.to/ikechukwu1234/modules-4cpf</link>
      <guid>https://dev.to/ikechukwu1234/modules-4cpf</guid>
      <description>&lt;p&gt;JavaScript Modules: You can divide your JavaScript code into various files using modules. This makes maintaining a code base simpler. Modules also rely on the script&amp;gt; tag's type = "module" attribute. &lt;/p&gt;

&lt;p&gt;Modules: is just a file, a module.One module is one script. Modules can load one another and employ specialised directives in that manner. To exchange functionality, call functions from one module into another using export and import.&lt;/p&gt;

&lt;p&gt;Variables and functions marked with the export keyword should be used outside of the current module.&lt;/p&gt;

&lt;p&gt;The import keyword enables the importation of features from other modules.&lt;/p&gt;

&lt;p&gt;Common js module:is the original method of packaging JavaScript code for Node.js was using Common J's module.&lt;/p&gt;

&lt;p&gt;In Common J's module all of your dependencies for are stored together or in one file called node modules.&lt;/p&gt;

&lt;p&gt;ES module: This standard, which debuted with ES6, was introduced in 2015. The goal was to provide these functionality in browsers while standardising how Js modules operate&lt;/p&gt;

&lt;p&gt;In ES modules each dependency is stored on it's own files&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>react</category>
      <category>typescript</category>
    </item>
    <item>
      <title>TYPESCRIPT</title>
      <dc:creator>ikechukwu1234</dc:creator>
      <pubDate>Thu, 03 Aug 2023 16:16:47 +0000</pubDate>
      <link>https://dev.to/ikechukwu1234/typescript-ije</link>
      <guid>https://dev.to/ikechukwu1234/typescript-ije</guid>
      <description>&lt;p&gt;TypeScript is a syntactics superset of JavaScript which adds statics types.&lt;br&gt;
TypeScript being "syntactics superset" means that it shares the same base syntax as JavaScript, but add something to it.&lt;/p&gt;

&lt;p&gt;Why should I use TypeScript?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Compilation: it a compiler of code and code error, it has error detector.&lt;/li&gt;
&lt;li&gt;It support OOP: it support the Object Oriented Programming Language&lt;/li&gt;
&lt;li&gt;It supports type definition from existing JavaScript:it shows the data type while your JavaScript don't when typing or programming.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;TypeScript Type system&lt;br&gt;
1) any Type: is a super type of all type in TypeScript. it disable type checking and effectively allows all types to be used.&lt;br&gt;
2) built in type: your string:"", number:1, null, undefined&lt;br&gt;
3) user defined type: the user is the one to determine the types of data to be use in the application.&lt;/p&gt;

&lt;p&gt;Type Assignment&lt;br&gt;
when creating a variable in TypeScript, there are two main ways TypeScript assigns a type:&lt;br&gt;
1) Explicit:writing out the type&lt;br&gt;
e.g let firstname: string = "James";&lt;br&gt;
Explicit type assignment are easier to read and more intentional&lt;br&gt;
2) Implicit:TypeScript will "guess" the type,based on the assigned value&lt;br&gt;
let firstname = "John";&lt;br&gt;
Note:Having TypeScript "guess" the type of a value is called: infer.&lt;/p&gt;

&lt;p&gt;Implicit assignment force TypeScript to infer the value.&lt;/p&gt;

&lt;p&gt;Implicit type assignment are shorter, faster to type,and often used when developing and testing.&lt;/p&gt;

&lt;p&gt;Error in Type Assignment&lt;br&gt;
TypeScript will throw error if data types do not match.&lt;/p&gt;

&lt;p&gt;TypeScript syntax for variable declaration&lt;br&gt;
var identifier : Type = value;&lt;/p&gt;

&lt;p&gt;Example of Type:any&lt;br&gt;
let k: any = true;&lt;br&gt;
k = "string";&lt;br&gt;
Example of TypeScript Arrays&lt;br&gt;
TypeScript has a specific syntax for typing arrays variable.&lt;br&gt;
e.g: let fruit: (string| number|null|boolean)[] = ["mango", 80, 90,null,true,false,"Edwin","Gideon"];&lt;br&gt;
Example of TypeScript Tuples&lt;br&gt;
Tuples is a typed array with a pre-defined length and types for each index.&lt;br&gt;
Tuples help or allow each element in the array to be a known type of value.&lt;br&gt;
To defined a tuple,specify the type of each element in the array&lt;br&gt;
e.g:let studentscore: [string,number,string,boolean,string] = ["John", 30,"jude",true,"I love coding"];&lt;br&gt;
Example of TypeScript syntax of an object&lt;br&gt;
e.g: let car:{&lt;br&gt;
name: string;&lt;br&gt;
color: string;&lt;br&gt;
wheel: number;&lt;br&gt;
year: number;&lt;br&gt;
}={&lt;br&gt;
name: "Benz";&lt;br&gt;
color: "White";&lt;br&gt;
wheel: 4;&lt;br&gt;
year: 2022;&lt;br&gt;
};&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>typescript</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
