{{ message }}

Instantly share code, notes, and snippets.

🏠
Working from home

# Erhan Yaşar erhanyasar

🏠
Working from home
Created Jun 2, 2020
Simple Quiz Solutions
View Converting Object to an Array
 const object = { '1': 30, '2': 58 }; function objectToArrConverter (obj) { if (Object.entries(obj).length === 0) return []; else { let arr = Object.entries(obj);
Last active Jun 4, 2020
Some Quiz Questions Solved
View findMissing
 let A = [4,12,9,5,6,1], B = [4,9,12,6]; function findMissing(A, B){ let missingElements = []; for (var i=0; i
Last active Jun 9, 2020
Form Control
View formControl.js
 \$(document).ready(function() { let f1err = 0, f2err = 0, f3err = 0, date = new Date(); \$("#sendBTN").click(function() { if ((\$("#username").val() == "") || (\$("#phone").val() == "")) { f1err = 1; if (\$("#username").val() == "") {
Last active Jun 15, 2020
View findMaxNumber
 const solution = (numbers) => { let maxNumber = 0; for (let i=0; i maxNumber) maxNumber = numbers[i]; } return maxNumber;
Last active Jun 15, 2020
Some of the sample codes I've developed