UrduScript Lets You Learn Programming JavaScript in Roman Urdu

0
420
UrduScript Lets You Learn Programming JavaScript in Roman Urdu

UrduScript Lets You Learn Programming JavaScript in Roman Urdu

UrduScript is a programming language. This goal is newbies programmers who have to make the programme in an easy way. UrduScript informal Urdu uses programmers to programming concepts is easy. If you have JavaScript enabled (jQuery, UnderScore, React, etc) you can use this JavaScript option.

Meet Asad Memon

Asad Memon is the technical Co-Founder of RemoteInterview, a Silicon Valley-based startup. He is also the person behind StartupList.pk, a much-needed initiative that is like a Pakistani version of CrunchBase.

Urduscript in JavaScript
Asad Memon

Try Online!

Other Examples

For Each

// variable
rakho list = ["Ahmed", "Ali", "Qasim"]

// foreach loop. Iterate over 'list' array
har list k naam per{
  // output to screen
  likho(naam)
}

If-Else

// declare variable
rakho naam = "Asad"

// if else
agar (naam){
  likho("Salam, " + naam)
}
warna {
  likho("Naam khali hai")
}

Prompt

//prompt: ask for input from user
rakho naam = pucho("Apna naam likhen")

// if else
agar (naam){
  likho("Salam, " + naam)
}
warna {
  likho("Naam khali hai")
}

Function

// function is 'kaam'
kaam salaam(naam){
	agar (naam){
    likho("Salam, " + naam)
  }
  warna {
    likho("Naam khali hai")
  }
}

// calling function
salaam("Ali")

While

// declare a variable
rakho a = 10

// while is 'jabtak'
jabtak( a>0 ){
	likho(a)
	a--
}

Do-While

// ask age until given
karo{
  age = pucho("Apni age likhen")
}
jabtak(!age)
likho("Apki age " + age + " hai")

If-Elseif-Else

// declare variable
rakho naam = "Asad"

// if elseif else
agar (naam === "Asad"){
  likho("Salam, " + naam)
}
warnaagar (naam === "John"){
  likho("Hello, " + naam)
}
warna {
  likho("Naam khali hai")
}

Recursion (Fibonacci)

// recursive function
kaam fibonacci(num) {
  // base case
  agar (num <= 1) bhejo 1;
	
  // recursion
  bhejo fibonacci(num - 1) + fibonacci(num - 2);
}

likho(fibonacci(5))

LEAVE A REPLY

Please enter your comment!
Please enter your name here