ch
Feedback
Software programing

Software programing

前往频道在 Telegram

This is a channel which gives tutorial on different programming languages, android tips and tricks best apps etc...

显示更多
1 471
订阅者
无数据24 小时
无数据7 天
无数据30 天
帖子存档
\n\nThe first line (in the script) creates an array named cars.\n\nThe second line \"finds\" the element with id=\"demo\",\n and \"displays\" the array in the \"innerHTML\" of it. \nWhat is an Array?\n\nAn array is a special variable, \nwhich can hold more than one value at a time.","datePublished":"2019-02-11T15:17:01Z","dateModified":"2019-02-11T15:17:01Z","author":{"@type":"Organization","name":"Software programing","url":"https://telemetr.io/ch/channels/1259641032-software_programming1","image":"https://img.tlmtr.io/c/1nfkaQ/5846196616325870645?ty=x"},"publisher":{"@type":"Organization","name":"Software programing","url":"https://telemetr.io/ch/channels/1259641032-software_programming1","image":"https://img.tlmtr.io/c/1nfkaQ/5846196616325870645?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":694}]}},{"@type":"ListItem","position":14,"item":{"@type":"SocialMediaPosting","@id":"https://telemetr.io/ch/channels/1259641032-software_programming1/posts/414","url":"https://telemetr.io/ch/channels/1259641032-software_programming1/posts/414","mainEntityOfPage":"https://telemetr.io/ch/channels/1259641032-software_programming1/posts/414","headline":"https://t.me/hokingrasta","articleBody":"https://t.me/hokingrasta","datePublished":"2019-02-10T15:23:41Z","dateModified":"2019-02-10T15:23:41Z","author":{"@type":"Organization","name":"Software programing","url":"https://telemetr.io/ch/channels/1259641032-software_programming1","image":"https://img.tlmtr.io/c/1nfkaQ/5846196616325870645?ty=x"},"publisher":{"@type":"Organization","name":"Software programing","url":"https://telemetr.io/ch/channels/1259641032-software_programming1","image":"https://img.tlmtr.io/c/1nfkaQ/5846196616325870645?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":675}]}},{"@type":"ListItem","position":15,"item":{"@type":"SocialMediaPosting","@id":"https://telemetr.io/ch/channels/1259641032-software_programming1/posts/409","url":"https://telemetr.io/ch/channels/1259641032-software_programming1/posts/409","mainEntityOfPage":"https://telemetr.io/ch/channels/1259641032-software_programming1/posts/409","headline":"JavaScript provides 8 mathematical constants that can be accessed with the Math object: Example Math.E // ret…","articleBody":"JavaScript provides 8 mathematical constants\nthat can be accessed with the Math object:\nExample\nMath.E // returns Euler's number\nMath.PI // returns PI\nMath.SQRT2 // returns the square root of 2\nMath.SQRT1_2 // returns the square root of 1/2\nMath.LN2 // returns the natural logarithm of 2\nMath.LN10 // returns the natural logarithm of 10\nMath.LOG2E // returns base 2 logarithm of E\nMath.LOG10E // returns base 10 logarithm of E\n\n@software_programming1","datePublished":"2019-02-08T14:09:02Z","dateModified":"2019-02-08T14:09:02Z","author":{"@type":"Organization","name":"Software programing","url":"https://telemetr.io/ch/channels/1259641032-software_programming1","image":"https://img.tlmtr.io/c/1nfkaQ/5846196616325870645?ty=x"},"publisher":{"@type":"Organization","name":"Software programing","url":"https://telemetr.io/ch/channels/1259641032-software_programming1","image":"https://img.tlmtr.io/c/1nfkaQ/5846196616325870645?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":716},{"@type":"InteractionCounter","interactionType":"https://schema.org/ShareAction","userInteractionCount":1}]}},{"@type":"ListItem","position":16,"item":{"@type":"SocialMediaPosting","@id":"https://telemetr.io/ch/channels/1259641032-software_programming1/posts/408","url":"https://telemetr.io/ch/channels/1259641032-software_programming1/posts/408","mainEntityOfPage":"https://telemetr.io/ch/channels/1259641032-software_programming1/posts/408","headline":"Math.min() and Math.max() Math.min() and Math.max() can be used to find the lowest or highest value in a list…","articleBody":"Math.min() and Math.max()\n\nMath.min() and Math.max() can be used to find the\n lowest or highest value in a list of arguments:\nExample\nMath.min(0, 15,-8, -200); // returns -200 \nMath.max(0, 15,-8, -200); // returns 15\n\nMath.round() rounds a number to the nearest integer:\n\nExample\nMath.round(4.7); // returns 5\nMath.round(4.4); // returns 4 \n\nMath.ceil() rounds a number up to the nearest integer:\n\nExample\nMath.ceil(4.4); // returns 5 \n\nMath.floor() rounds a number down to the nearest integer:\n\nExample\nMath.floor(4.7); // returns 4 \n@software_programming1","datePublished":"2019-02-08T14:08:22Z","dateModified":"2019-02-08T14:08:22Z","author":{"@type":"Organization","name":"Software programing","url":"https://telemetr.io/ch/channels/1259641032-software_programming1","image":"https://img.tlmtr.io/c/1nfkaQ/5846196616325870645?ty=x"},"publisher":{"@type":"Organization","name":"Software programing","url":"https://telemetr.io/ch/channels/1259641032-software_programming1","image":"https://img.tlmtr.io/c/1nfkaQ/5846196616325870645?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":698}]}},{"@type":"ListItem","position":17,"item":{"@type":"SocialMediaPosting","@id":"https://telemetr.io/ch/channels/1259641032-software_programming1/posts/407","url":"https://telemetr.io/ch/channels/1259641032-software_programming1/posts/407","mainEntityOfPage":"https://telemetr.io/ch/channels/1259641032-software_programming1/posts/407","headline":"you can use the toString() method to output numbers as base 16 (hex), base 8 (octal), or base 2 (binary). Exa…","articleBody":"you can use the toString() method to output numbers as base 16 (hex), base 8 (octal), or base 2 (binary).\nExample👽\nvar myNumber = 128;\nmyNumber.toString(16); // returns 80 hexadecimal\nmyNumber.toString(8); // returns 200 octal\nmyNumber.toString(2); // returns 10000000 binary\nInfinity\n\nInfinity (or -Infinity) is the value JavaScript will return if you calculate a number outside the largest possible number.\nExample👽\nvar myNumber = 2;\nwhile (myNumber != Infinity) { // Execute until Infinity\n myNumber = myNumber * myNumber;\n}\n@software_programming1","datePublished":"2019-02-05T12:44:36Z","dateModified":"2019-02-05T12:44:36Z","author":{"@type":"Organization","name":"Software programing","url":"https://telemetr.io/ch/channels/1259641032-software_programming1","image":"https://img.tlmtr.io/c/1nfkaQ/5846196616325870645?ty=x"},"publisher":{"@type":"Organization","name":"Software programing","url":"https://telemetr.io/ch/channels/1259641032-software_programming1","image":"https://img.tlmtr.io/c/1nfkaQ/5846196616325870645?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":686},{"@type":"InteractionCounter","interactionType":"https://schema.org/ShareAction","userInteractionCount":1}]}},{"@type":"ListItem","position":18,"item":{"@type":"SocialMediaPosting","@id":"https://telemetr.io/ch/channels/1259641032-software_programming1/posts/406","url":"https://telemetr.io/ch/channels/1259641032-software_programming1/posts/406","mainEntityOfPage":"https://telemetr.io/ch/channels/1259641032-software_programming1/posts/406","headline":"👽To solve the problem above, it helps to multiply and divide: Example👻 var x = (0.2 * 10 + 0.1 * 10) / 10; //…","articleBody":"👽To solve the problem above, it helps to multiply and divide:\nExample👻\nvar x = (0.2 * 10 + 0.1 * 10) / 10; // x will be 0.3\n😎😎😎😎\nHexadecimal\n\nJavaScript interprets numeric constants as hexadecimal if they are\n preceded by 0x.\nExample\nvar x = 0xFF; // x will be 255\n@software_programming1","datePublished":"2019-02-05T12:44:36Z","dateModified":"2019-02-05T12:44:36Z","author":{"@type":"Organization","name":"Software programing","url":"https://telemetr.io/ch/channels/1259641032-software_programming1","image":"https://img.tlmtr.io/c/1nfkaQ/5846196616325870645?ty=x"},"publisher":{"@type":"Organization","name":"Software programing","url":"https://telemetr.io/ch/channels/1259641032-software_programming1","image":"https://img.tlmtr.io/c/1nfkaQ/5846196616325870645?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":652}]}},{"@type":"ListItem","position":19,"item":{"@type":"SocialMediaPosting","@id":"https://telemetr.io/ch/channels/1259641032-software_programming1/posts/405","url":"https://telemetr.io/ch/channels/1259641032-software_programming1/posts/405","mainEntityOfPage":"https://telemetr.io/ch/channels/1259641032-software_programming1/posts/405","headline":"JavaScript Numbers JavaScript has only one type of number. Numbers can be written with, or without, decimals.…","articleBody":"JavaScript Numbers\nJavaScript has only one type of number.\n\nNumbers can be written with, or without, decimals.\n\nExample\nvar x = 34.00; // A number with decimals\nvar y = 34; // A number without decimals\nJavaScript Numbers are Always 64-bit Floating Point\n\nUnlike many other programming languages, JavaScript does not define \ndifferent types of numbers, like integers, short, long, floating-point \netc.\n\n@software_programming1","datePublished":"2019-02-05T12:44:36Z","dateModified":"2019-02-05T12:44:36Z","author":{"@type":"Organization","name":"Software programing","url":"https://telemetr.io/ch/channels/1259641032-software_programming1","image":"https://img.tlmtr.io/c/1nfkaQ/5846196616325870645?ty=x"},"publisher":{"@type":"Organization","name":"Software programing","url":"https://telemetr.io/ch/channels/1259641032-software_programming1","image":"https://img.tlmtr.io/c/1nfkaQ/5846196616325870645?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":638}]}},{"@type":"ListItem","position":20,"item":{"@type":"SocialMediaPosting","@id":"https://telemetr.io/ch/channels/1259641032-software_programming1/posts/404","url":"https://telemetr.io/ch/channels/1259641032-software_programming1/posts/404","mainEntityOfPage":"https://telemetr.io/ch/channels/1259641032-software_programming1/posts/404","headline":"👽Extracting String Characters There are 2 safe methods for extracting string characters: charAt(position) cha…","articleBody":"👽Extracting String Characters\n\nThere are 2 safe methods for extracting string characters:\n\n charAt(position)\n charCodeAt(position)\n\nThe charAt() Method👈\n\nThe charAt() method returns the character at a specified\n index (position) in a string:\nExample\nvar str = \"HELLO WORLD\";\nstr.charAt(0); // returns H\n\n method 2 The charCodeAt() Method👈\n\nThe charCodeAt() method returns the unicode of the character at \na specified index in a string:\nExample👻\nvar str = \"HELLO WORLD\";\n\nstr.charCodeAt(0); // returns 72\n@software_programming1","datePublished":"2019-02-04T08:16:22Z","dateModified":"2019-02-04T08:16:22Z","author":{"@type":"Organization","name":"Software programing","url":"https://telemetr.io/ch/channels/1259641032-software_programming1","image":"https://img.tlmtr.io/c/1nfkaQ/5846196616325870645?ty=x"},"publisher":{"@type":"Organization","name":"Software programing","url":"https://telemetr.io/ch/channels/1259641032-software_programming1","image":"https://img.tlmtr.io/c/1nfkaQ/5846196616325870645?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":631}]}}]}
photo content

photo content

photo content

photo content

#Interesting facts about Programming 1😍 The first computer programmer was a female, named Ada Lovelace.😍 2⚽The first game was created in 1961. Fun facts are that it didn’t earn any money. ⚽ 3👽 The first virus was created in 1983.👽 4👿 The first computer“bug(error)” was identified in 1947 as a dead moth.😈 5😊 FIRST HIGH-LEVEL COMPUTER PROGRAMMING LANGUAGE USED: FORTRAN 😊 6😎 The original name for JAVA was OAK.😎 7😳 JavaScript is not compiled.😳 @software_programming1

👉🏿 who wents Interesting facts about Programming✋🏾

JavaScript Objective Questions 1 JavaScript is … A. subjective B. objective C. evil D. object based 2 What does the following expression return? 1 + 5 + ” bottles of milk”; A. “15 bottles of milk” B. “6 bottles of milk” C. undefined. An exception is thrown D. “5 bottles of milk” 3 How do you create an object in JavaScript? A. var obj = {}; B. function Foo() {} var obj = new Foo(); C. All of these work. D. var obj = new Object(); 4 What is the result of the following statement: typeof “x”; A. “character” B. “[object String]” C. Throws error “ReferenceError: x is not defined” D. “string” E. “undefined” 5 Primitive types are passed by : A. Value B. Pointer C. Reference

Looping Array Elements The best way to loop through an array, is using a "for" loop: Example var fruits, text, fLen, i; fruits = ["Banana", "Orange", "Apple", "Mango"]; fLen = fruits.length; text = "
    "; for (i = 0; i < fLen; i++) { text += "
  • " + fruits[i] + "
  • "; } These two different statements both create a new empty array named points: var points = new Array(); // Bad var points = []; // Good These two different statements both create a new array containing 6 numbers: var points = new Array(40, 25, 10) // Bad var points = [40,25, 10]; // Good

Creating an Array Using an array literal is the easiest way to create a JavaScript Array. Syntax: var array-name = [item1, item2, ...]; Example: var cars = ["corola", "vitz", "BMW"]; This statement modifies the first element in cars: cars[0] = "hammer";

#JavaScript Arrays are used to store multiple values in a single variable. In this tutorial we will use a script to display arrays inside a <p> element with id="demo": Example <p id="demo"></p> <script> var cars = ["Saab", "Volvo", "BMW"]; document.getElementById("demo").innerHTML = cars; </script> The first line (in the script) creates an array named cars. The second line "finds" the element with id="demo", and "displays" the array in the "innerHTML" of it. What is an Array? An array is a special variable, which can hold more than one value at a time.

JavaScript provides 8 mathematical constants that can be accessed with the Math object: Example Math.E // returns Euler's number Math.PI // returns PI Math.SQRT2 // returns the square root of 2 Math.SQRT1_2 // returns the square root of 1/2 Math.LN2 // returns the natural logarithm of 2 Math.LN10 // returns the natural logarithm of 10 Math.LOG2E // returns base 2 logarithm of E Math.LOG10E // returns base 10 logarithm of E @software_programming1

Math.min() and Math.max() Math.min() and Math.max() can be used to find the lowest or highest value in a list of arguments: Example Math.min(0, 15,-8, -200); // returns -200 Math.max(0, 15,-8, -200); // returns 15 Math.round() rounds a number to the nearest integer: Example Math.round(4.7); // returns 5 Math.round(4.4); // returns 4 Math.ceil() rounds a number up to the nearest integer: Example Math.ceil(4.4); // returns 5 Math.floor() rounds a number down to the nearest integer: Example Math.floor(4.7); // returns 4 @software_programming1

you can use the toString() method to output numbers as base 16 (hex), base 8 (octal), or base 2 (binary). Example👽 var myNumber = 128; myNumber.toString(16); // returns 80 hexadecimal myNumber.toString(8); // returns 200 octal myNumber.toString(2); // returns 10000000 binary Infinity Infinity (or -Infinity) is the value JavaScript will return if you calculate a number outside the largest possible number. Example👽 var myNumber = 2; while (myNumber != Infinity) { // Execute until Infinity myNumber = myNumber * myNumber; } @software_programming1

👽To solve the problem above, it helps to multiply and divide: Example👻 var x = (0.2 * 10 + 0.1 * 10) / 10; // x will be 0.3 😎😎😎😎 Hexadecimal JavaScript interprets numeric constants as hexadecimal if they are preceded by 0x. Example var x = 0xFF; // x will be 255 @software_programming1

JavaScript Numbers JavaScript has only one type of number. Numbers can be written with, or without, decimals. Example var x = 34.00; // A number with decimals var y = 34; // A number without decimals JavaScript Numbers are Always 64-bit Floating Point Unlike many other programming languages, JavaScript does not define different types of numbers, like integers, short, long, floating-point etc. @software_programming1

👽Extracting String Characters There are 2 safe methods for extracting string characters: charAt(position) charCodeAt(position) The charAt() Method👈 The charAt() method returns the character at a specified index (position) in a string: Example var str = "HELLO WORLD"; str.charAt(0); // returns H method 2 The charCodeAt() Method👈 The charCodeAt() method returns the unicode of the character at a specified index in a string: Example👻 var str = "HELLO WORLD"; str.charCodeAt(0); // returns 72 @software_programming1