Text
Happiness is like a Butterfly. You keep running after it, it keeps flying away. If you stand still, It comes and sits on your shoulders.
0 notes
Text
JavaScript Data Types
JavaScript Data TypesJavaScript variables can hold many data types: numbers, strings, objects and more: var length = 16; // Numbervar lastName = "Johnson"; // Stringvar x = {firstName:"John", lastName:"Doe"}; // Object
0 notes
Text
Do you have any secret Amal with Allah? Which is only between you and Allah. Is there no donation, Never told anyone, Only Allah knows, No one else knows?
1 note
·
View note
Text
funny code
<!DOCTYPE html> <html> <body>
<p id="demo"></p>
<script> var day; switch (new Date().getDay(2)) { case 0: day = "Sunday"; break; case 1: day = "Monday"; break; case 2: day = "Tuesday"; break; case 3: day = "Wednesday"; break; case 4: day = "Thursday"; break; case 5: day = "Friday"; break; case 6: day = "Saturday"; } document.getElementById("demo").innerHTML = "Today is " + day; </script>
</body> </html>
1 note
·
View note
Text
JavaScript Array
What is Array ?javascript arrays are used to store multiple value in a single variable ,exaplevar friendsName = ["TARIF", "RAKIB", "NAYEEM", "EAHIA", "TAJUL", "ISRAK", "AL ISLAM", "KAMRUL", "ABDULLAH", "RIFAYA", "NAJMUL"]console.log(friendName)answer here show all my friend.EDIT NAMEvar friendsName = ["TARIF", "RAKIB", "NAYEEM", "EAHIA", "TAJUL", "ISRAK", "AL ISLAM", "KAMRUL", "ABDULLAH", "RIFAYA", "NAJMUL"]friendsName[2] = "NAYEEMUR RAHAMAN"; // 2 means NAYEEM console.log(friendsName);answerindexof[2] value is NAYEEMUR RAHAMANthen all is sameYOU CAN CALL A SINGLE VALUEvar friendsName = ["TARIF", "RAKIB", "NAYEEM", "EAHIA", "TAJUL", "ISRAK", "AL ISLAM", "KAMRUL", "ABDULLAH", "RIFAYA", "NAJMUL"] var myBestFriendNameIs = friendsName[2];console.log(myBestFriendNameIs)ANSWER: NAYEEM;YOU CAN CHECK MY FRIENDS POSITIONvar friendsName = ["TARIF", "RAKIB", "NAYEEM", "EAHIA", "TAJUL", "ISRAK", "AL ISLAM", "KAMRUL", "ABDULLAH", "RIFAYA", "NAJMUL"]var friendPosition = firendsName.indexOf("RAKIB")console.log(FriendsName)ANSWER: 1JavaScript shift methodremove the first element of an array items or remove first items of an array items.example:var friendsName = ["TARIF", "RAKIB", "NAYEEM", "EAHIA", "TAJUL", "ISRAK", "AL ISLAM", "KAMRUL", "ABDULLAH", "RIFAYA", "NAJMUL"]friendsName.shift()console.log(FriendsName);ANSWER:[ "RAKIB", "NAYEEM", "EAHIA", "TAJUL", "ISRAK", "AL ISLAM", "KAMRUL", "ABDULLAH", "RIFAYA", "NAJMUL"]JavaScript unshift methodremove the first element of an array items or remove first items of an array items.example:var friendsName = ["TARIF", "RAKIB", "NAYEEM", "EAHIA", "TAJUL", "ISRAK", "AL ISLAM", "KAMRUL", "ABDULLAH", "RIFAYA", "NAJMUL"]friendsName.unshift("ALIF")console.log(FriendsName);ANSWER: ["ALIF", "TARIF", "RAKIB", "NAYEEM", "EAHIA", "TAJUL", "ISRAK", "AL ISLAM", "KAMRUL", "ABDULLAH", "RIFAYA", "NAJMUL", "ALIF"]JavaScript POP methodpop method remove the last element of an arrayexample var friendsName = ["TARIF", "RAKIB", "NAYEEM", "EAHIA", "TAJUL", "ISRAK", "AL ISLAM", "KAMRUL", "ABDULLAH", "RIFAYA", "NAJMUL"]friendsName.pop()console.log(FriendsName);ANSWER: ["TARIF", "RAKIB", "NAYEEM", "EAHIA", "TAJUL", "ISRAK", "AL ISLAM", "KAMRUL", "ABDULLAH", "RIFAYA"]JavaScript push methodpush method add a new value the last element of an arrayexample:var friendsName = ["TARIF", "RAKIB", "NAYEEM", "EAHIA", "TAJUL", "ISRAK", "AL ISLAM", "KAMRUL", "ABDULLAH", "RIFAYA", "NAJMUL"]friendsName.pop("ALIF")console.log(FriendsName);ANSWER: ["TARIF", "RAKIB", "NAYEEM", "EAHIA", "TAJUL", "ISRAK", "AL ISLAM", "KAMRUL", "ABDULLAH", "RIFAYA", "NAJMUL", "ALIF"]
1 note
·
View note
Text
Do you have any secret Amal with Allah? Which is only between you and Allah. Is there no donation, Never told anyone, Only Allah knows, No one else knows?
1 note
·
View note
Text
what is javascript
javascript is the world most popular language of the web
1 note
·
View note