Jump to content

javascript em septiri em septhiri


yomama

Recommended Posts

1 hour ago, sri_india said:

inside consol log kadhu loop ayipoyakaa inko consol log undi ... it supposed to print 5 as counter value is incremented for each for loop iteration but it still print 0 .... 

oh yeah adi just once run ayiddi after the loop is done, last counter log ayi increment ayiddi. more over loop tarvata second closing brace deniki? its a typo? between hell anav why is that?

Link to comment
Share on other sites

LTT , baga slow ga cheppadu itanu , udemy lo course undi !!!! 

Next ye framework nerchukunte better, React JS aa Angular 2 aaa? 

Ruby, JS, c, html/css, Rails, Nosql, Shell, sy-admin(linux), AWS, Hadoop, Scala, Spark, Devops, Docker,React JS.

E stack baga master avte future untundi.

bl@st Db lo chala mandi ee pina vesina stack lo experts unaru, evana meku telsina open source links unte related to these techs share cheyandi.

Learn a new thing every day. Learning never stops.

 

Link to comment
Share on other sites

coercion: persuading someone to do something by force or threats.

In JS operators concepts: 

3 == 3 is true

3 == "3" is also true.

Because JS engine coerces the number in to a string and then checks the equality.

Now there is === in JS. which means strict equality. 

3 === 3 true

3 === "3" false

That is JS syntax parser knows that === is a strict equality operator and string of 3 and number 3 are not equal. 

Coercion is also called as type casting or conversion in static languages. JS is a dynamic typing language, that is types are assigned while run time.

There are two types of coercion explicit and implicit , implicit means hidden.

lets say 

var a = 3;

var b == a + "afdb";

so here in line 2 a is implicitly coerced into a string and you know what + does to strings, concatenate them.

adamma story. inkosari inko concept eskundam, simple stories.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...