Sie sind auf Seite 1von 5

Qualcomm would never hire you if you have never written code of vhdl.

Similarly An image
processing company will never hire you, if you have never written code on matlab/python
using OpenCv.

Learning JAVASCRIPT
Since it is used together with frameworks for front end development, it would be in order for
you to learn compliment that with HTML and CSS. If you have already learned that, you can
opt to learn back-end development techniques and that is by learning Python, PHP, MYSQL
among others.
Understand the difference between var and let

/* program 1

//write a program that stores 3 nos. and prints them

const number1 = 5; //constant declaration


let number2 = 8;
let number3 = 9; //variable declaration

console.log(number1,number2,number3); //prints 3 numbers

*/

/* program 2

//write a program that uses only one variable but prints 3 numbers

let number = 45; //variable declartion


console.log (number); //prints first no.

number = 90; //variable value replaced


console.log (number); //prints second no.

number = 18; //variable value replaced


console.log (number); // prints third no.
*/

/*program3

const string = 'prelude is going to be a trillion dollar company';

console.log (string.toUpperCase());

console.log (string.toLowerCase());

console.log(string.endsWith('y'));

let myDream = 'prelude will have 5 big offices across the world';

console.log(myDream.endsWith('d'));
console.log(myDream.toUpperCase());

*/

//program that prints out the length of 3 strings 'a','bc','Cde'.

let a = 'a';

let b = 'bc';

let c = 'Cde';

console.log('the length of the string 1 = '+ a.length);

console.log('the length of the string 2 = '+b.length);

console.log('the length of the string 3 = '+c.length);

// this technique is to be used when

//the strings/ length of the strings could change

// if the length of the strings are going to remain the same you could use

console.log('a'.length , 'bc'.length ,'cde'.length);

/*PROGRAM

let string = '44';

console.log(string.length+string+string.length);

*/

/*program

MAINTAINS MY FULL NAME, SAYS HI TO ME AND TELLS ME HOW LONG MY FULL NAME IS*/

const first ='Manali';

const last = 'Bhat';

console.log('Hi, '+first+' ' +last+' nice to greet you');

const firstlast = first+last;

console.log('your name has these number of characters:'+firstlast.length);

*/

/*program

//get the first and last letter from the string

const string = 'abcdefghijklmnopqrstuvwxyz';

console.log(string[0],string[string.length -1]);

//concatenate 1st and 3rd to alst characters


const strings = 'qwertyuiop';

console.log(strings[0]+strings[strings.length-3]); "qi"

*/

/* program: length of string - 5

//program to find length of the string minus 5


/*
//my code
let string = 'MANALI BHAT';
console.log('the length of the string = '+string.length);
let length = string.length;
let solution = length - 5;
console.log('length of the string - 5 = ' +solution);
*/

//zachs code
let stringa = 'MANALI BHAT';
console.log('the length of ', stringa ,'- 5 = ' + (stringa.length-5) );

/* program: even or odd

let number = 70;


if (number % 2 ==0) {
console.log('its even');
} else {
console.log('its odd');
}

Das könnte Ihnen auch gefallen