1-what are the data types in java script?
2-how many ways you can display java script output ?
3-what is concatenation give some examples?
4-what are variables in java script?
1.Boolean,String,Number…etc
1 Like
- Data types :- 1.pre defined data type 2. User defined data type
2.using alert(), prompt() , document.write(),console.log() we display the output - Concatenation is used to join more than one string together
Ex . var f_name = "john ";
var s_name = “doe”;
console.log(f_name + s_name);
4.variable are used to store the data . We are say that it’s a container to hold or store the data
1 Like
1.number, srting, boolean, null, undefined, obect
2. 5 ways to display js output- console.log, document.write, inner HTML, alert, DOM manipilation
3.combining of multiple strings together.
example-
let firstName = “janga”;
let lastName = “vasantha”;
let fullName = firstName + " " + lastName;
console.log(fullName);
4.used to store date. var, let, const
1 Like