Prime or Composite in JavaScript Class 12 | NEB Board - Computer Science #javascript #important

preview_player
Показать описание
About: In this video you will learn to write a JavaScript program to check whether a number is prime or composite. Neb Class 12 - Computer Science

You can watch these videos too🙂.
Related videos📷:

📸 PHP one shot:

Structure shot:

Your queries:
Prime or composite in JavaScript Class 12,
Write a program in JavaScript to check whether a number is prime or composite.
JavaScript Class 12 important question.
Neb computer model questions.
#neb #class12
#javascript
Рекомендации по теме
Комментарии
Автор

Dai Palindrome ra reverse wala gardinu na using function, without using fuction and with arguments ra tei program le sab ko difference majalei bujhaidinu na. Dherai views aaunxa

KevinBadal-dz
Автор

Program to check positive, negative and zero.
<!DOCTYPE html>
<html>
<head>
<title>Check Number</title>
</head>
<body>
<script>
var num = parseFloat(prompt("Enter a number:"));
if (num > 0) {
alert("The number is positive.");
} else if (num < 0) {
alert("The number is negative.");
} else {
alert("The number is zero.");
}
</script>
</body>
</html>

smartmentor
Автор

This one is more easy guyz

let number = 69;
check();
function check(){
if(number == 2){
return;
}
for(var i = 2 ; i<number ; i++){
if(number%i == 0){
console.log("The number is composite")
return;
}else{
console.log("The number is Prime")
return
}

}
}

myst_iclens
Автор

write a java script code to check whether a number is positive, negative and zero.
<html>
<head>
<title>check number either positive, negative or zero</title>
</head>
<body>
<script>
var n= parseInt(prompt("enter a number"));
if(n>o){
console.log("n+ is positive number");
}
else if(n<o){
console.log("n+ is negative number");
}
else{
console.log("n+ is zero number");
}
</script>
</body>
</html>

Aayush.kharel
Автор

<html>
<head>
<title>check number</ title>
</head>
<body>
<script>
var n = parseInt(prompt("Enter any number:"));
If (n>0)
{
Document.write(n+"is positive");
}
Else if (n<0)
{
Document.write(n+"is negative");
}
Else{
Document.write(n+"is zero");
}
</script>
</body>
</html>

sha-zox
Автор

Write a c program that use structures to represent details of 5 books( title, author, publisherand price) and print them out

agentsamir
Автор

Important Long question haru ko haldinu na💗

SonikaAdhikari-dmyu
Автор

Sir kunai pani java ko normal program lie function ma easily convert garney tarika sikaidinu

rozeshrana
Автор

write a js program ..using function to generate fibonacci series of numbers starting from 1...yo gardinu na...yo send up ma aako thiyo

chandrachetri
Автор

dai parseInt ko thauma window lekhda ne hunxha ? like window prompt ? yesma rah parseInt ma k difference cha bhandenuna

anmansh
Автор

Dai ani ki tyo cprogramming auda kheri ksto case ma inner loop use grnu parxa ani ksto ma outer loop mtra use. Grnu prxa?

AmenM
Автор

Dai javascript using function ko factorial haru ani aru complex complex ani imp qn haru grdinu na🙏

AnushaShrestha-ep
Автор

Palindrome check garne pni banaunu paryo sir

BipinAryal-lc
Автор

thx mero dai aba factorial rw fibonnaci using fuc

Justrandomopk
Автор

<html>
<head>
<title> positive, negative or zero </title>
</head>
<body>
<script>
var n = parseInt(prompt("enter a number"));
if (n>0)
{
document.write(n+"is a positive number");
}
{
elseif (n<0)
document.write(n+ "is a negative number");
}
{
else
{ document.write( "number is zero");
}
</script>
</body>
<html>

hxkfy
Автор

Dai exam ma structure ko condition wala auxa ki normal wala auxa ? Bhandiuna

shbhanthapa
Автор

Write a JavaScript to print the large & smallest number among 10 elements of an array? Yo kasari garne hora

RoshuNiraula
Автор

Dai pHp ra javascript ko mcqs haldinu na tyo code wala

ComputerScience-kc
Автор

Dai, kun kun programing haru aauchha tesko short list banayera community post share gardinu na or if possible euta short video banayera post gardinu na.

serenityserenityyyy
Автор

Structure ra file handling ko kun program ma for i use garni kun ma use nagarni kasari thahunxa ?

sanjuuuuuukkk
join shbcf.ru