Daily Test with Code Example
HTML
CSS
JavaScript
PHP-MySQL
Which type of <input> creates a date input control, such as a pop-up calendar?
type="text" type="date" type="button"<input type="date" name="set_date" value="2012-10-15" />
Which CSS property adds shadow effects to the text of an element?
font-style color text-shadowh2 {
text-shadow: 2px 3px 3px #a0a1fe;
}
Click on the function that adds new elements to the end of an array.
pop() shift() push()var pags = ["lessons", "courses"];
pags.push("download", "tutorials");
alert(pags[2]); // download
Which function sorts an array by key, in ascending order, maintaining key to data correlations?
asort() ksort() sort()$lang =[10=>"PHP", 20=>"JavaScript", "site"=>"coursesweb.net");
ksort($lang);
var_export($lang); // array ("site"=>"coursesweb.net", 10=>"PHP", 20=>"JavaScript")