₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,223 members, 8,449,227 topics. Date: Tuesday, 21 July 2026 at 01:16 PM

Toggle theme

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

Nairaland ForumScience/TechnologyProgrammingChallenge For Javascript Beginners/intermidiate (5379 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

See Why You Cant Code ( Secret From Mark Zuckerberg)My Journey Into Shopify Development ( Theme )Who Is The Best Programmer In Nairaland?