Giter Club home page Giter Club logo

javascript-es6-tamil's Introduction

JavaScript ES6 in Tamil

  • ஒரு விசயத்த நம்ப தாய் மொழில படிச்சு புறிஞ்சுகுறதே ஒரு கிக்குதான். அந்த கிக் உங்களுக்கு கிடைக்கட்டும்முனுதான் இந்த முயற்சி :D
  • பிழைகலுக்கு மன்னிக்கவும். பிழைகல் திருத்த உதவவும்.

####ES6 Features :


##Let

இந்த Let keyword நம்ப இசல் பூச்சியோட compare பண்ணலாம். இசல் பூச்சி எப்புடி ஒரு ராத்திரி தான் உயிரோட இருக்குமொ let keyoword use பண்ண blockல மட்டு தான் இருக்கும்.

####Example:

####ES 5:

// global scope

var n = 100;
for (var n =0;n<7; n++){
	// Using var won't set a block scope
	console.log("Let keyword fun");
};
console.log(n);  // Outputs => 7

####ES6

// global scope

var n = 100;
for (let n =0;n<7; n++){
	// let creates a block scope in the loop
	console.log("Let keyword fun");
};
console.log(n);  // Outputs => 100

மேல இருக்குற ES5 exampleல loopக்கு use பண்ண n value தான் latest value of n. அதுனால mostly for loopக்கு நாம வேற variable 'i' use பண்ணுவோம்.

ES6ல let keyword use பண்ணா இந்த issue avoid பண்ணலாம்.

####Some more examples of Let :

####Example : 1

// global scope

var n = 100;
function amma(){
	// local scope
	let n = 30;
}
amma();
console.log('n'); // => Outputs 100

####Example : 2

// global scope

for(var n=0;n<8;n++){
	// let creates block scope
	let x = 100;
}
console.log(x) // => Reference Error for 'x'

####Tips to remember :

  1. Let keywordஅ இசல் பூச்சியோட compare பண்ணிக்கோ மச்சா.
  2. ஒரு blockல மட்டும் தான் memory இருக்கும்.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.