Javascript Course

Some JavaScript functions and code snippets useful for Programmers and JS scripts.

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which attribute specifies the URL address where to send the form-data?
method action name
<form action="script.php" method="post"> ... </form>
Which CSS property can be used to break lines in the middle of words?
word-wrap line-height font-size
#id {
  width: 100px;
  word-wrap: break-word;
}
Which function sorts the elements of an array into alphabetical order, based on the string values?
pop() sort() shift()
var tutorials = ["php", "html", "css", "flash"];
tutorials.sort();
alert(tutorials[0]);          // css
Indicate the function that returns the value of the last element into an array.
current() next() end()
$code =[10=>"Perl", 20=>"PHP", 21=>"Python", 30=>"JavaScript");
$last = end($code);
echo $last;      // JavaScript
JavaScript Code Snippets

Last accessed pages

  1. Wake Up! (8927)
  2. Creating Tabs Effect with JavaScript (728)
  3. CSS Course - Free lessons (14763)
  4. JavaScript Course - Free lessons (23097)
  5. Objects in 3D Space (1325)

Popular pages this month

  1. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (174)
  2. PHP-MySQL free course, online tutorials PHP MySQL code (125)
  3. Read Excel file data in PHP - PhpExcelReader (113)
  4. Create simple Website with PHP (82)
  5. Wake Up! (81)