Thursday, 20 July 2017

...Unity..

இட்டதோர் தாமரைப்பூ
இதழ் விரித்திருத்தல் போலே
வட்டமாய் புறாக்கள் கூடி
இரையுண்ணும்; அவற்றின் வாழ்வில்
வெட்டில்லை; குத்துமில்லை;
வேறுவேறு இருந்து அருந்தும்
கட்டில்லை; கீழ்மேல் என்னும்

கண்மூடி வழக்கம் இல்லை!

Image result for poor and rich

Thursday, 25 May 2017

...Family...

👆🏻

Unnodu Vaazhntha Kaalangal  Yaavum Kanavaai Ennai Mooduthadi 

Nerupaalum Mudiyathamma Ninaivugalai Azhipatharku Unnakaga Kathirpen💗😭🤡

Wednesday, 10 May 2017

string method

https://www.w3schools.com/js/js_string_methods.asp

String Object

<!DOCTYPE html>
<html>
<body>

<h2>Never Create Strings as objects.</h2>
<p>Strings and objects cannot be safely compared.</p>

<p id="demo1"></p>
<p id="demo2"></p>
<p id="demo3"></p>
<p id="demo4"></p>
<p id="demo5"></p>

<script>
var x = "John";              // x is a string
var y = new String("John");  // y is an object
document.getElementById("demo1").innerHTML = (x==y)+'<br>becz equal value';


var x = "John";              // x is a string
var y = new String("John");  // y is an object
document.getElementById("demo2").innerHTML = (x===y)+'<br>not equal becz one is string anothe is object';



var x = new String("John");            
var y = new String("John");
document.getElementById("demo3").innerHTML = (x==y)+'<br>different object';

document.getElementById("demo4").innerHTML = "Hello" +
"Dolly!";

</script>

</body>
</html>

js variable

<!DOCTYPE html>
<html>
<body>

<h2>JavaScript typeof</h2>
<p>The typeof operator returns the type of a variable or an expression.</p>

<p id="demo"></p>

<script>
var a="hai";
var b=4;
var c;
var d=null;
document.getElementById("demo").innerHTML =
typeof a +'     a=hai'+'<br>'+
typeof d +'     d=null is treated as object'+'<br>'+
typeof b +'    b=4'+'<br>'+ typeof c +'   just var c'+'<br>'+
 typeof true +'    typeof true'+'<br>'+
 typeof [1,2,3,4] +'    typeof [1,2,3,4]  '+'<br>'+
typeof {name:'john', age:34} + '<br>'+
typeof function myFunc(){}+'         typeof function myFunc(){}   '+'<br>'+
(null === undefined) + "<br>" +
(null == undefined);
</script>

</body>
</html>
<!--
10 == Equal x == y
10 === Strict equal x === y
10 != Unequal x != y
10 !== Strict unequal x !== y

 -->

js variable

<!DOCTYPE html>
<html>
<body>


<!--
vist this site for artimetic options
https://www.w3schools.com/js/js_arithmetic.asp


vist this site for assignment of operators
https://www.w3schools.com/js/js_assignment.asp
 -->



<h2>JavaScript Variables</h2>

<p>The result of adding 2 + 3 </p>
<p id="demo1a"></p>
<p>just declearing the var y; then print y it will display as undefined</p>

<p id="demo1b"></p>


<p>The result of adding "5"+ 2 + 3    if first oprand to be added as string then treat all the following oprand as string</p>

<p id="demo2"></p>


<p>The result of adding 2 + 3 + "5":</p>

<p id="demo3"></p>


<p>string concatination methode 1</p>

<p id="demo4"></p>



<p>string concatination methode 2</p>

<p id="demo5"></p>

<p>string concatination methode 3</p>

<p id="demo6"></p>

<script>
var x =  2 + 3 ;
var y;
document.getElementById("demo1a").innerHTML = x;
document.getElementById("demo1b").innerHTML = y;


var x =  "5"+ 2 + 3 ;
document.getElementById("demo2").innerHTML = x;

var x =  2 + 3 +"5" ;
document.getElementById("demo3").innerHTML = x;

var fn="vishnu"+" "+"yardini";
document.getElementById("demo4").innerHTML=fn;

var fn="vishnu",ln="yardini";
document.getElementById("demo5").innerHTML=fn+" " + ln;

var txt1 = "What a very ";
txt1 += "nice day";
document.getElementById("demo6").innerHTML = txt1;

</script>

</body>
</html>


js statement

<html>
<head>
<script>
function myFunction1()
{ var a=10;
var b=20;
var c=a+b;
document.getElementById("para2").innerHTML=c;
}

function myFunction2()
{
document.getElementById("para3").innerHTML="this is for para 3 after change belong to same function";
document.getElementById("para4").innerHTML="this is for para 4 after change belong to same function";

}


</script>
</head>
<body>
<p id='para1'>this is the para 1 b4 change</p>
<button type='button' onClick="document.getElementById('para1').innerHTML='para 1 after change'"> para 1 </button>


<p id='para2'>this is the para 2 b4 change</p>
<button type='button' onClick='myFunction1()'> para 2 </button>


<p id='para3'>this is the para 3 b4 change</p>
<button type='button' onClick="myFunction2()"> para 3 </button>


<p id='para4'>this is the para 4 b4 change</p>
<button type='button' onClick="myFunction2()"> para 4</button>


</body>
</html>