Data Types in JS We assigned data to the variable by using the assignment operator "=". Datatypes in JavaScript are: Number i.e., 11,23,45,6 Strings, i.e., "Hello World." Boolean, i.e., true, false Undefined Null Any of the complex data structures (Array and Objects) Let Block level scope, it works under block { } if call outer side of block the global let value will call console . log ( 'tut3' ) ; // Variables in js // var, let, const var name = 'harry' ; var channel ; var marks = 3454 ; marks = 0 ; channel = 'CodeWithHarry' console . log ( name , channel , marks ) ; // Rules for creating JavaScript Variables /* 1. Cannot start with numbers 2. Can start with letter, numbers, _ or $ 3. Are case sensitive */ var city = 'Delhi' ; console . log ( city ) ; const ownersName = 'Hari Ram' ; // ownersName = 'Harry'; // Cannot do this (error) console . log ( ownersName ) ; const fruit = 'Oran...
CSS Help the frogs find their lilypads using flex-direction and justify-content . Notice that when the flex direction is a column, justify-content changes to the vertical and align-items to the horizontal. 1 2 3 4 5 6 7 8 9 10 #pond { display: flex; } Next Flexbox Froggy is created by Codepip • GitHub • Twitter • Another property you can apply to individual items align-self:flex-end; is align-self . This property accepts the same values as align-items and its value for the specific item. 1 2 3 4 5 6 7 8 9 10 #pond { display: flex; align-items: flex-start; } .yellow { } Next Flexbox Froggy is created by Codepip • GitHub • Twitter • flex-wrap:wrap; Oh no! The frogs are all squeezed onto a single row of lilypads. Spread them out using the flex-wrap property, which accepts the following values: nowrap : Every item is fit to a si...
Comments
Post a Comment