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 tag can be used to create input text field in web page?
<form> <input> <div>
<input type="text" name="a_name" value="val" />
Which CSS property displays the text in a small-caps font?
display font-variant font-style
h3 {
  font-variant: small-caps;
}
What instruction displays a notice box with a message inside it, in JavaScript?
for() Date() alert()
var msg = "Visit CoursesWeb.net";
alert(msg);
Indicate the PHP code used to get the users IP.
$_SERVER["HTTP_USER_AGENT"] $_SERVER["REMOTE_ADDR"] $_GET[]
$ip = $_SERVER["REMOTE_ADDR"];
echo $ip;
JavaScript Code Snippets

Last accessed pages

  1. Get Lower, Higher, and Closest Number (3602)
  2. PHP PDO - exec (INSERT, UPDATE, DELETE) MySQL (51041)
  3. Node.js Move and Copy file (21864)
  4. SHA1 Encrypt data in JavaScript (21589)
  5. PHP Unzipper - Extract Zip, Rar Archives (10440)

Popular pages this month

  1. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (762)
  2. PHP Unzipper - Extract Zip, Rar Archives (690)
  3. Create simple Website with PHP (643)
  4. SHA256 Encrypt hash in JavaScript (518)
  5. Read Excel file data in PHP - PhpExcelReader (515)