Que.1 Add two Numbers
const AddTwoNumbers = (a,b) => { return a+b; };
Que.2 Find if the conditions are obeyed or not?
const Is_Valid = (a,b) => { return (a<10 && a>b); };
Que.3 Check the conditons
const Check = (A, B) => { return !(A % 10 !== 0 && B % 10 !== 0); // or // return (A % 10 !== 0 || B % 10 !== 0); };
Que.4 Find the first digit of a 4 digit number
const First_Digit = (n) => { let num = Math.floor(n / 1000); return num; };
Que.5 Find the last digit of a 4 digit number
const Last_Digit = (n) => { let num = Math.floor(n % 10); return num; };
Que.6 Find the remainder
const Find_the_remainder = (a,b) => { let num = b%a; return num; };
Que.7 Multipy two Numbers
const Multiply_two_number = (a,b) => { return a*b; };
Que.8 Marks Calculator
const Sum = (A, B, C) => { return A+B+C; }; const Average = (A, B, C) => { return (A+B+C)/3; };