This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; // eslint-disable-line | |
const webpack = require('webpack'); | |
const merge = require('webpack-merge'); | |
const CleanPlugin = require('clean-webpack-plugin'); | |
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
const StyleLintPlugin = require('stylelint-webpack-plugin'); | |
const CopyGlobsPlugin = require('copy-globs-webpack-plugin'); | |
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Creating Creature Class */ | |
class Creature{ | |
public boolean heart; | |
public int legs; | |
} | |
/* Using inheritance to create Human class */ | |
class Human extends Creature{ | |
public boolean logic; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML > | |
<html> | |
<head> | |
<!-- HEAD Elements --> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Page Title</title> | |
<meta http-equiv="Content-Security-Policy" content="default-src 'self'"> | |
<meta name="application-name" content="Application Name"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Other Console commands | |
console.group(); // Group all console cmds [ must have ending] | |
console.trace(); // Track elements the page currently using | |
console.time(); // Check page load time [Must have ending] | |
console.timeEnd(); // th ending of console.time() | |
console.memory; // check memory usage ( a propery not a function) | |
let exist = false; // just a boolean variable | |
console.assert(exist, "Not Found ! "); // if boolean var is false show not found | |
console.assert(!exist, " Found ! "); // else sho found | |
console.groupEnd(); // the ending of console.group() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Console Table : | |
console.table([{User : "Rida", Proffession : "Manager"}, | |
{User : "Charif", Proffession : "Manager"}, | |
{User : "Issam", Proffession : "Manager"}, | |
{ User : "Hicham", Proffession : "Manager"}]); | |
// www.aqweeb.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Other uses of Console | |
console.warn("WARNING : this is a warning message"); | |
console.info("INFO : this is a simple message"); | |
console.error("ERROR : F***G BUGS !"); | |
// www.aqweeb.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Stylize a consode using join(;) | |
const style1 =[ | |
'font-size : 40px', | |
'font-family : calibri', | |
'font-weight : bold', | |
'color : yellow' | |
].join(';'); | |
const style2 =[ | |
'font-size : 20px', | |
'font-family : tahoma', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Stylize a Console Message : | |
console.log("%cSTOP : ", "font-size:35px;color:red;font-weight:bold;"); | |
let message = "This is a browser feature intended for developers. If someone told you to copy-paste something here to enable a Facebook feature or someone's account, it is a scam and will give them access to your Facebook account."; | |
console.log("%c%s","font-size : 20px;letter-spacing : 2;",message); | |
// www.aqweeb.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Type simple message | |
console.log("Aqua Web Say : %s", 'Thanks :) '); | |
// Do some calcule | |
console.log("Aqua Web Say : %s", 5*8); | |
// Type some Unicode Stuff | |
console.log("Aqua Web Say : %s", '😂'); | |
// www.aqweeb.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log("Hello from Aqua Web"); | |
// www.aqweeb.com |
NewerOlder