Posts

Showing posts from September, 2024

WEB DEV CODE NOTES :

@VIDEO - 63 (#JS , INDEX.JS) let arr = [ 1 , 2 , 3 , 4 , 5 ] index   0 , 1 , 2 , 3 , 4 arr [ 0 ] = 5666 ; console . log ( arr ) console . log ( arr .length) console . log ( arr , typeof arr ) console . log ( arr .length) console . log ( arr [ 0 ]) console . log ( arr [ 2 ]) console . log ( arr [ 4 ]) console . log ( arr . toString ()) console . log ( arr . join (" and ")) console . log ( arr . pop ()) //ye last wale element ko bahar  #nikal leta hai console . log ( arr . push ( 100 )) // ye last me element ko @add kar deta hai Notes : Or ye jo pop , push hai ye array ki length return karta hai ... . Notes : " pop " ye " shift " ka # Bhai or " push " ye " unshift " ka # Bhai hota hai ... . console . log ( arr . shift ())   //ye first wale element ko bahar #nikal leta hai console . log ( arr . unshift ( 12 )) // ye first me element ko @add kar deta hai console . log ( arr ) let a1 = [ 1 , 2 , 3 ] le...

JS CODES

 Q.CHECK WEATHER THE PERSON CAN DRIVE OR NOT? let age = 5 ; if ( age > 18 ){     console . log (" you can drive "); } else {     console . log (" you can not drive "); } Q.IS USERS AGE ;IES BETWEEN 10 TO 20 OR NOT? if ( age >= 10 && age <= 20 ) {     console . log (" Your age is lies between 10 to 20 "); } else {     console . log (" Your age is not lies between 10 to 20 "); } Q.Demonstrate the use switch statement in js? let day = 3 ; switch ( day ) {   case 1 :     console . log (" Monday ");     break ;   case 2 :     console . log (" Tuesday ");     break ;   case 3 :     console . log (" Wednesday ");     break ;   case 4 :     console . log (" Thursday ");     break ;   case 5 :     console . log (" Friday ");     break ;   case 6 :     console . log (" Saturday ...

CPP QUESTION HUB

CPP QUESTIONS :-  Q .1. FIND THE  SUM OF 2 NUMBERS :A & B. # include < iostream > using namespace std ; int main () {     int a = 10 , b   = 5 ;     cout << " sum = " << ( a + b ) << endl ;     return 0 ; }        Q .2. FIND THE AREA OF SQUARE. # include < iostream > using namespace std ; int main () {     int a = 10 ;     int area = a * a ;     cout << " area = " << ( area ) << endl ;     return 0 ; } Q.3.  FIND THE MIN OF 2 NUMBERS. int main () {     int a = 110 , b = 11 ;     if ( a < b )     {         cout << " a is min ";     } else {         cout << " b is min ";         }         cout << endl ;     return 0 ; } Q.4. FIND NUMBE...
Image
 TIMETABLE  MAKING:- SOURCE CODE:- <! DOCTYPE html > < html lang =" en "> < head >     < meta charset =" UTF-8 ">     < meta name =" viewport " content =" width=device-width, initial-scale=1.0 ">     < title >Plan</ title >     < style >         . heading {             text-align: center ;         }         . box {             height: auto ;             width: 96 vw ;             background-color: cornflowerblue ;             display: flex ;         }         . schedule {             background-color: rgb ( 255 , 68 , 0 );             height: auto ;         ...