₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,264 members, 8,421,057 topics. Date: Friday, 05 June 2026 at 05:43 PM

Toggle theme

Challenge For Javascript Beginners/intermidiate - Programming (3) - Nairaland

Nairaland ForumScience/TechnologyProgrammingChallenge For Javascript Beginners/intermidiate (5095 Views)

1 2 3 Reply

Re: Challenge For Javascript Beginners/intermidiate by dometome: 6:38am On Sep 28, 2017
Jaddo19:
My solution....
  var num=45;
  function isset(x){
  if(x=="undefined" ){
  return ' not defined';
 }else{
  return 'defined';
 }
 }
  isset(num);
 
always use camel case
Re: Challenge For Javascript Beginners/intermidiate by modash(m): 9:00am On Oct 03, 2017
modash:
I have an interesting challenge, write a program that gives you factorial of a number
E.g
5! = 5*4*3*2*1 = 120
4! = 4*3*2*1 = 24
3! = 3*2*1 = 6
2! = 2*1 = 2
1! = 1*1 = 1
0! = 1 (note the answer for zero factorial)
Should I drop the solution
Re: Challenge For Javascript Beginners/intermidiate by danielclerkson: 12:01pm On Jun 01, 2024
modash:
Should I drop the solution
I will be using pseudo code.
Fun factorial(num){ if(num isNaN() || num == 0){return 0;}else{ for(i = 0; i < 0 && i >= num; i++){ result = num * i } return result;} factorial(6);
1 2 3 Reply

Introduction To Airtable For Javascript DevelopersWhatsapp Group For Javascript DevelopersLearn And Get The Source Code For Javascript Type Writer Code234

Can You Solve This Google Coding Interview Problem? (pics)Algorithm Workout!Future Of Software Development In Nigeria In The Next 15 Years