Skip to content

Instantly share code, notes, and snippets.

@un1crom
Created September 22, 2021 20:16
Show Gist options
  • Save un1crom/b4c761e0a23787092c4a15778867a343 to your computer and use it in GitHub Desktop.
Save un1crom/b4c761e0a23787092c4a15778867a343 to your computer and use it in GitHub Desktop.
/*(<seed> ////write a javascript function to say Hello World!..
</seed>)
<stop>});</stop>
<codeType>javascriptBrowser</codeType>*/
//alert("Hello World!");
////write a javascript function to display the current date and time..
//var today = new Date();
//document.write(today);
////Write a JavaScript function that accepts two integer values as parameters and calculates their sum..
//function add(a,b){
// return a+b;
//}
//console.log(add(1,2));
////Write a JavaScript function that accepts three integer values as parameters and calculates their sum..
//function add(a,b,c){
//return a+b+c;
//}
//console.log(add(3,4,5));
/* var num=prompt("enter number"); ///get user input from prompt window .....and print it on console.. */ ///check whether the number is even or odd ..and display it on console.... */ /// check whether the number is prime or not ...and display it on console.....*/ ///find factorial of a given number ...and display it on console......*/
/*<output>{
"console": {}
}
</output>*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment