Format:
<type>[optional module scope]: <description>
Example:
feat (auth): add facebook login
export const isValidUrl = (url: string) => { | |
try { | |
new URL(url); | |
return true; | |
} catch { | |
return false; | |
} | |
}; |
Format:
<type>[optional module scope]: <description>
Example:
feat (auth): add facebook login
#include <Keypad.h> | |
#include <LiquidCrystal.h> | |
LiquidCrystal lcd(13, 12, 11, 10, A0, A1); | |
const byte ROWS = 4; | |
const byte COLS = 4; | |
char keys[ROWS][COLS] = { | |
{'1', '2', '3', 'A'}, | |
{'4', '5', '6', 'B'}, |
package conprog_lab_1; | |
public class ConProg_Lab_1 { | |
public static void main(String[] args) { | |
PrintChar pc1 = new PrintChar('A', 10); | |
PrintChar pc2 = new PrintChar('B', 10); | |
PrintNum pn = new PrintNum(10); |
// Question 1 | |
var i=0; | |
var mulArr = []; | |
while(i<=100){ | |
if(i%3 == 0 || i%5 == 0){ | |
mulArr.push(i) | |
} | |
i++; | |
} |
//Setup | |
var contacts = [ | |
{ | |
"firstName": "Akira", | |
"lastName": "Laine", | |
"number": "0543236543", | |
"likes": ["Pizza", "Coding", "Brownie Points"] | |
}, | |
{ | |
"firstName": "Harry", |
// Setup | |
var myObj = { | |
gift: "pony", | |
pet: "kitten", | |
bed: "sleigh" | |
}; | |
function checkObj(checkProp) { | |
//Check if the Object has that property, not check the value. |
// Setup | |
function phoneticLookup(val) { | |
var result = ""; | |
let lookup = { | |
alpha: 'Adams', | |
bravo: 'Boston', | |
charlie: 'Chicago', | |
delta: 'Denver', | |
echo: 'Easy', |