×
          
              
          
      
      Clear all filters including search bar
          
        Valeri Tandilashvili's Personal Professional Blog
      
    /id:(.*?) submit date:(.*?) done date:(.*?) stat:(.*?) err:(.*)/7439722864896249924 sub:001 dlvrd:001/id:(.*?) (?:sub:\d+ dlvrd:\d+ )?submit date:(.*?) done date:(.*?) stat:(.*?) err:(.*)/7439722864896249924--patch-pgit add --patchgit add -pynqaddocument.addEventListener('click', func);
function func() {
    alert('You clicked me!');
}document.addEventListener('click', function() {
    alert('You clicked me!');
});foreachlet greatColors = ['green', 'orange', 'yellow'];
greatColors.forEach(listColors);
function listColors(color) {
    document.write('The color ' + color + ' is a great color<br>');
}XMLExtensible Markup Languageapplication/xml.xmlXML is extensibleXML carries the data, does not present itXML is a public standardXML documentexchange<?xml version="1.0" encoding = "UTF-8"?>
<student>
   <name>George</name>
   <city>Tbilisi</city>
   <phone>(011) 123-4567</phone>
</student>< ><element>needs to be closed<element>...</element><?xml version="1.0"?>
<student>
   <name>George</name>
   <city>Tbilisi</city>
   <address/>
   <phone>(011) 123-4567</phone>
</student><company></contact-info></contact-info><?xml version = "1.0"?>
<contact-info>
<company>Learn Practice Teach
</contact-info>
</company><?xml version = "1.0"?>
<contact-info>
   <company>Applications.ge</company>
<contact-info>root element<x><y><?xml version = "1.0"?>
<x>...</x>
<y>...</y>case-sensitivecase sensitivity<?xml version="1.0"?>
<student>
   <name>George</name>
   <city>Tbilisi</city>
   <address/>
   <phone>(011) 123-4567</Phone>
</student><phone></phone>a { background-color: yellow; }a{background-color:yellow;}class Class_A { }
class Class_B { }
abstract class MyAbstractClass extends Class_A, Class_B { }Parse error:  syntax error, unexpected ',', expecting '{' in...interface Animal {
    function run() {
        echo 'I am running!';
    }
}Fatal error:  Interface function Animal::run() cannot contain body in ...interface MyInterface {
    public $foo = null;
}Fatal error:  Interfaces may not include member variables in ...publicinterface iTemplate
{
    private function setVariable($name, $var);
    public function getHtml($template);
}Fatal error:  Access type for interface method iTemplate::setVariable() must be omitted in ...interface MyInterface {
    function __construct();
}
class mathh implements MyInterface {
    // function __construct(){ }
}interface MyInterface {
    static function getPI();
}
class mathh implements MyInterface {
    static function getPI(){
        return 3.1415926535;
    }
}abstract class Animal {
    // child classes must implement this
    abstract static function prey();
    static public function run() {
        echo "I am running!\n";
    }
}
class Dog extends Animal {
    static public function prey() {
        echo "I killed the cat !\n";
    }
}
$dog = new Dog();
$dog->prey(); // I killed the cat !<?xml version = "1.0" encoding = "UTF-8" standalone = "yes"?><student>
   <name>George</name>
   <city>Tbilisi</city>
   <phone>(011) 123-4567</phone>
</student><?xml encoding="UTF-8" standalone="no"?>
<student>
   <name>George</name>
   <city>Tbilisi</city>
   <phone>(011) 123-4567</phone>
</student>error on line 1 at column 7: Malformed declaration expecting version<?xml Version="1.0" encoding="UTF-8" standalone="no"?>
<student>
   <name>George</name>
   <city>Tbilisi</city>
   <phone>(011) 123-4567</phone>
</student>error on line 1 at column 7: Malformed declaration expecting version<?xml<? version="1.0" encoding="UTF-8" standalone="no"?>
<student>
   <name>George</name>
   <city>Tbilisi</city>
   <phone>(011) 123-4567</phone>
</student>error on line 1 at column 3: xmlParsePI : no target namefirst statement<student>
   <name>George</name>
   <city>Tbilisi</city>
   <phone>(011) 123-4567</phone>
</student>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>error on line 6 at column 6: XML declaration allowed only at the start of the documentversionencodingstandalone<?xml encoding="UTF-8" standalone="no" version="1.0"?>
<student>
   <name>George</name>
   <city>Tbilisi</city>
   <phone>(011) 123-4567</phone>
</student>error on line 1 at column 7: Malformed declaration expecting version<?xml version='1.0' encoding='UTF-8' standalone="no"?>
<student>
   <name>George</name>
   <city>Tbilisi</city>
   <phone>(011) 123-4567</phone>
</student>Higher order functionfunction doubleMe(number) {
    return 2*number;
}
function tripleMe(number) {
    return 3*number;
}
function quadrupleMe(number) {
    return 4*number;
}
document.write(doubleMe(10));
document.write(tripleMe(10));
document.write(quadrupleMe(10));Higher order functionfunction multiplier(multiply) {
    return function(number){
        return number*multiply;
    };
}
let double = multiplier(2);
let triple = multiplier(3);
let quadruple = multiplier(4);
document.write(double(10));
document.write(triple(10));
document.write(quadruple(10));clickfunc1func2func1let counter = 0;
document.addEventListener('click', func1);
document.addEventListener('click', func2);
function func1(){
    console.log('You clicked me!');
  
    if (counter>2) {
        console.log('Max limit is 3');
        document.removeEventListener('click', func1);
    }
}
function func2(){
    counter ++;
    console.log('counter: '+counter);
}