Cheatsheets / Introduction to JavaScript Introduction JavaScript JavaScript is a programming language that powers the dynamic behavior on most websites. Alongside HTML and CSS, it is a core technology that makes the web run. Console.log() The console.log() method is used to log or print messages to the console. It can also be used to print objects and other info. Strings Strings are a primitive data type. They are any grouping of characters (letters, spaces, numbers, or symbols) surrounded by single quotes ' or double quotes " . Numbers Numbers are a primitive data type. They include the set of all integers and floating point numbers. ccoonnssoollee..lloogg((''HHii tthheerree!!''));; //// PPrriinnttss:: HHii tthheerree!! lleett ssiinnggllee == ''WWhheerreess mmyy bbaannddiitt hhaatt??'';; lleett ddoouubbllee == ""WWhheerreess mmyy bbaannddiitt hhaatt??"";; lleett aammoouunntt == 66;; lleett pprriiccee == ...
Comments
Post a Comment