diff --git "a/freeCodeCamp/i2c/dev/corpus.jsonl" "b/freeCodeCamp/i2c/dev/corpus.jsonl"
new file mode 100644--- /dev/null
+++ "b/freeCodeCamp/i2c/dev/corpus.jsonl"
@@ -0,0 +1,245 @@
+{"_id":"doc-en-freeCodeCamp-a64f1d87dd0b110303cc38a4cc0afcaebaa69c55c2547808ba1ec1b7af68ed08","title":"","text":"{ \"node\": true /* * ENVIRONMENTS * ================= */ // Define globals exposed by Node.js. \"node\": true, /* * ENFORCING OPTIONS * ================= */ // Force all variable names to use either camelCase style or UPPER_CASE // with underscores. \"camelcase\": true, // Prohibit use of == and != in favor of === and !==. \"eqeqeq\": true, // Suppress warnings about == null comparisons. \"eqnull\": true, // Enforce tab width of 2 spaces. \"indent\": 2, // Prohibit use of a variable before it is defined. \"latedef\": true, // Require capitalized names for constructor functions. \"newcap\": true, // Enforce use of single quotation marks for strings. \"quotmark\": \"single\", // Prohibit trailing whitespace. \"trailing\": true, // Prohibit use of explicitly undeclared variables. \"undef\": true, // Warn when variables are defined but never used. \"unused\": true, // Enforce line length to 80 characters \"maxlen\": 80 }"}
+{"_id":"doc-en-freeCodeCamp-78ba46e386c37d6b99f989267de7006cdf68144f63df2a048b70fb9c4444950a","title":"","text":" { /* * ENVIRONMENTS * ================= */ // Define globals exposed by modern browsers. \"browser\": true, // Define globals exposed by jQuery. \"jquery\": true, /* * ENFORCING OPTIONS * ================= */ // Force all variable names to use either camelCase style or UPPER_CASE // with underscores. \"camelcase\": true, // Prohibit use of == and != in favor of === and !==. \"eqeqeq\": true, // Suppress warnings about == null comparisons. \"eqnull\": true, // Enforce tab width of 2 spaces. \"indent\": 2, // Prohibit use of a variable before it is defined. \"latedef\": true, // Require capitalized names for constructor functions. \"newcap\": true, // Enforce use of single quotation marks for strings. \"quotmark\": \"single\", // Prohibit trailing whitespace. \"trailing\": true, // Prohibit use of explicitly undeclared variables. \"undef\": true, // Warn when variables are defined but never used. \"unused\": true, // Enforce line length to 80 characters \"maxlen\": 80, // Enforce placing 'use strict' at the top function scope \"strict\": true' } "}
+{"_id":"doc-en-freeCodeCamp-788e85ed25dac66e99641c74afc08c8c83d16f4d17e978eaa550fb8280dde013","title":"","text":"وهي مقسمة إلى الفئات التالية: * الأعداد الصحيحة * أرقام النقطة العائمة * الشخصيات * اكتب منطقي * الاعداد العشرية * الرموز * القيم المنطقية تفاصيل كل نوع من أنواع البيانات مذكورة أدناه: ## الأعداد الصحيحة: هذه هي من أربعة أنواع: `byte` ، `short` ، `int` ، `long` . من المهم ملاحظة أن هذه القيم موجبة وسالبة. يتم تخزين الأعداد الصحيحة في جهاز الكمبيوتر باستخدام [مكمل 2](http://www.ele.uri.edu/courses/ele447/proj_pages/divid/twos.html) . ويتكون من قيم سلبية وإيجابية ولكن بصيغ مختلفة مثل `(-1 to -128)` أو `(0 to +127)` . يمكن أن يحتوى عدد صحيح غير موقعة على قيمة موجبة أكبر ، ولا توجد قيمة سالبة مثل `(0 to 255)` . على عكس C ++ لا يوجد عدد صحيح غير موقعة في Java. هذه هي من أربعة أنواع: `byte` ، `short` ، `int` ، `long` . من المهم ملاحظة أن هذه القيم موجبة وسالبة. يتم تخزين الأعداد الصحيحة في جهاز الكمبيوتر باستخدام [مكمل 2](http://www.ele.uri.edu/courses/ele447/proj_pages/divid/twos.html) . ويتكون من قيم سالبة وموجبة ولكن بصيغ مختلفة مثل `(-1 to -128)` أو `(0 to +127)` . يمكن أن يحتوى عدد صحيح غير موقعة على قيمة موجبة أكبر ، ولا توجد قيمة سالبة مثل `(0 to 255)` . على عكس C ++ لا يوجد عدد صحيح غير موقعة في Java. ### بايت: ### بايت (byte): نوع البيانات بايت هو عدد صحيح مكمل 8 بت موقعة اثنين. `Wrapper Class: Byte `Wrapper Class (الفئة): Byte Minimum value: -128 (-2^7) Minimum value (القيمة الاصغر): -128 (-2^7) Maximum value: 127 (2^7 -1) Maximum value (القيمة القصوى): 127 (2^7 -1) Default value: 0 Default value (القيمة الافتراضية): 0 Example: byte a = 10 , byte b = -50; Example (مثال): byte a = 10 , byte b = -50; ` ### قصيرة: ### قصيرة (short): نوع البيانات القصير هو عدد صحيح مكمل من 16 بت موقعة اثنين. `Wrapper Class: Short `Wrapper Class (الفئة): Short Minimum value: -32,768 (-2^15) Minimum value (القيمة الصغرى): -32,768 (-2^15) Maximum value: 32,767 (2^15 -1) Maximum value (القيمة القصوى): 32,767 (2^15 -1) Default value: 0. Default value (القيمة الافتراضية): 0. Example: short s = 10, short r = -1000; Example (مثال): short s = 10, short r = -1000; ` ### الباحث: ### العدد الصحيح (integer): نوع البيانات IN هو عدد صحيح مكمل 32 بت موقعة اثنين. يتم استخدامه بشكل عام كنوع بيانات افتراضي للقيم المتكاملة إلا إذا كان هناك قلق حول الذاكرة. `Wrapper Class: Integer `Wrapper Class (الفئة): Integer Minimum value: (-2^31) Minimum value (القيمة الصغرى): (-2^31) Maximum value: (2^31 -1) Maximum value (القيمة القصوى): (2^31 -1) The default value: 0. The default value (القيمة الافتراضية): 0. Example: int a = 50000, int b = -20 Example (مثال): int a = 50000, int b = -20 ` ### طويل: ### طويل (long): نوع بيانات طويل هو عدد صحيح مكمل 64 بت موقعة اثنين. `Wrapper Class: Long `Wrapper Class (الفئة): Long Minimum value: (-2^63) Minimum value (القيمة الصغرى): (-2^63) Maximum value: (2^63 -1) Maximum value (القيمة القصوى): (2^63 -1) Default value: 0L. Default value (القيمة الافتراضية): 0L. Example: long a = 100000L, long b = -600000L; Example (مثال): long a = 100000L, long b = -600000L; By default all integer type variable is \"int\". So long num=600851475143 will give an error. But it can be specified as long by appending the suffix L (or l) ` ## نقطة عائمة: ## اعداد عشرية: تسمى هذه أيضًا أرقامًا حقيقية وتستخدم للتعبيرات التي تتضمن دقة كسرية. هذه من نوعين: `float` ، `double` . يتم تجنب Float فعليًا في حالة البيانات الدقيقة مثل بيانات العملات أو الأبحاث. ### تطفو: ### تطفو (float): نوع بيانات عائم عبارة عن [نقطة عائمة IEEE 754](http://steve.hollasch.net/cgindex/coding/ieeefloat.html) ذات دقة واحدة 32 بت. `Wrapper Class: Float `Wrapper Class (الفئة): Float Float is mainly used to save memory in large arrays of floating point numbers. اساسا تستخدم لحفظ الذاكرة في المصفوفات المكونة من الارقام العشرية ذات دقة واحدة(float) Default value: 0.0f. Default value (القيمة الافتراضية): 0.0f. Example: float f1 = 24.5f; Example (مثال): float f1 = 24.5f; The default data type of floating-point number is double. So float f = 24.5 will introduce an error. نوع القيمة الافتراضية للارقام العشرية ذات دقة واحدة هو مزدوج. مثال: float f = 24.5 ستظهر خطا للمستخدم However, we can append the suffix F (or f) to designate the data type as float. لكن, بامكاننا استخدام F(or f) لتعيين توع البيانات كرقم عشري ذات دقة واحدة (float) The default data type of floating-point number is double. So float f = 24.5 will introduce an error. However, we can append the suffix F (or f) to designate the data type as float. ` ### مزدوج: ### مزدوج (double): نوع بيانات مزدوج هو [نقطة عائم IEEE 754](http://steve.hollasch.net/cgindex/coding/ieeefloat.html) مزدوجة الدقة 64 بت. عادةً ما يكون نوع البيانات هذا هو الخيار الافتراضي. يجب عدم استخدام نوع البيانات هذا مطلقًا للقيم الدقيقة ، مثل العملة."}
+{"_id":"doc-en-freeCodeCamp-805ad3e384fb06295767ac5bcad30236c3a5d681994725daf735c0f358c9898d","title":"","text":"``` 10198442 ``` No newline at end of file ``` "}
+{"_id":"doc-en-freeCodeCamp-1e5402fbb2e3b148702a2b48e1c016f4826c80acc89e0f53270e482b34026876","title":"","text":"## Byzantine Fault Tolerance Imagine the scenario where there is an empire and there are three generals with their respective armies at different positions. All of them must attack in order to win the fight or they can choose to retreat. Their only means of communications are through pigeon posts. But there is a problem, the generals can't trust each other or ensure that the message has not been corrupted along the way. How do they solve this problem? Blockchain essentially does so by listening to information broadcasted by other people, reaching to a consensus of which information is deemed true. As such, this model asssumes that the amount of \"traitors\" do not exceed more than 1/3 of the entire network. ## Modern Use Cases of Blockchain - Asset Tokenization : Using blockchain technology, previously illiquid assets can now be converted into its tokenized form and cheaply and efficiently fractionalized, traded and settled on chain (rather than go through the lengthy process of clearing and settlement process through third parties like clearing houses) - Supply Chain Management : Blockchains allow multiple parties to access a database to act as the single source of truth. Recorded transactions are immutable, are append only and provide a time stamped audit trail. - Digital Identity : A self sovereign ID can be used to verify identity without needing an individual to produce numerous documents and paperwork each time they need their identity verified. This could be done with a single key that can be matched against an immutable ledger. The digital ID can also collect other online information about a user’s identity like social security information, medical records and social media credentials and have that stored securely on the blockchain. - Energy Market : Blockchain technology can enable the smart metering of electricity generated through an individual’s solar panels to be recorded, traded and settled on a ledger. - Healthcare : Using blockchain technology to record patient information on a distributed ledger can allow different stakeholders conditional access to a single source of truth where each interaction with a patient’s health data can be recorded on a ledger as a transaction with a time stamped audit trail. ## Issues Whilst blockchain technology is undoubtedly elegant, there are several problems that its presence brings, the main one being use my malicious third parties. Due to the extremely secure nature of blockchain, its technologies are often used by criminals to carry out transactions, which are impossible for governments to track."}
+{"_id":"doc-en-freeCodeCamp-814f7ba15377430a6a714618ff600b9c391c1d447d33ae817b3b15800ae3ab16","title":"","text":"\"description\": [ \"Write a function that splits an array (first argument) into groups the length of size (second argument) and returns them as a multidimensional array.\" ], \"challengeSeed\": \"function chunk(arr, size) {n // Break it up.rn return arr;rn}nnchunk((['a', 'b', 'c', 'd'], 2));\", \"challengeSeed\": \"function chunk(arr, size) {n // Break it up.rn return arr;rn}nnchunk(['a', 'b', 'c', 'd'], 2);\", \"tests\": [ \"assert.deepEqual(chunk(['a', 'b', 'c', 'd'], 2), [['a', 'b'], ['c', 'd']], 'should return chunked arrays');\", \"assert.deepEqual(chunk([0, 1, 2, 3, 4, 5], 3), [[0, 1, 2], [3, 4, 5]], 'should return chunked arrays');\","}
+{"_id":"doc-en-freeCodeCamp-fcdd8dd357796a561a09cba2911fb9842b959bfd796be45756c34f710f9102b7","title":"","text":"\"description\": [ \"Return the remaining elements of an array after chopping off n elements from the head.\" ], \"challengeSeed\": \"function slasher(arr) {n // it doesn't allways pay to be firstrn return arr;rn}nnslasher([1, 2, 3], 2);\", \"challengeSeed\": \"function slasher(arr, howMany) {n // it doesn't allways pay to be firstrn return arr;rn}nnslasher([1, 2, 3], 2);\", \"tests\": [ \"assert.deepEqual(slasher([1, 2, 3], 2), [3], 'should drop the first two elements');\", \"assert.deepEqual(slasher([1, 2, 3], 0), [1, 2, 3], 'should return all elements when n < 1');\","}
+{"_id":"doc-en-freeCodeCamp-4d0883869b833d48b0ea3655822d5459d2864a6679cf6ffe57479e75d51ab8c4","title":"","text":"] }, { \"_id\":\"a8e512fbe388ac2f9198f0fa\", \"name\":\"Where art thou\", \"difficulty\":\"1.55\", \"description\":[ \"Make a function that looks through a list (first argument) and returns an array of all objects that have equivalent property values (second argument).\" ], \"challengeEntryPoint\":\"where([{ first: 'Romeo', last: 'Montague' }, { first: 'Mercutio', last: null }, { first: 'Tybalt', last: 'Capulet' }], { last: 'Capulet' });\", \"challengeSeed\":\"function where(collection, source) {n var arr = [];rn // What's in a name?rn return arr;rn}\", \"tests\":[ \"assert.deepEqual(where([{ first: 'Romeo', last: 'Montague' }, { first: 'Mercutio', last: null }, { first: 'Tybalt', last: 'Capulet' }], { last: 'Capulet' }), [{ first: 'Tybalt', last: 'Capulet' }], 'should return an array of objects');\", \"assert.deepEqual(where([{ 'a': 1 }, { 'a': 1 }, { 'a': 1, 'b': 2 }], { 'a': 1 }), [{ 'a': 1 }, { 'a': 1 }, { 'a': 1, 'b': 2 }], 'should return with multiples');\" ] }, { \"_id\":\"a39963a4c10bc8b4d4f06d7e\", \"name\":\"Seek and Destroy\", \"difficulty\":\"1.60\","}
+{"_id":"doc-en-freeCodeCamp-9f803ed6cd571814a3db9e507b895d2286a78fd747e9605eff1d726019439a61","title":"","text":"\"name\":\"Seek and Destroy\", \"difficulty\":\"1.60\", \"description\":[ \"Remove all values (last argument(s)) from an array (first argument) and return as a new array.\" \"You will be provided with an initial array (the first argument in the destroyer function), followed by one or more arguments. Remove all elements from the initial array that are of the same value as these arguments.\" ], \"challengeSeed\": \"function destroyer(arr) {n // Remove all the valuesrn return arr;rn}nndestroyer([1, 2, 3, 1, 2, 3], 2, 3);\", \"tests\": [ \"assert.deepEqual(destroyer([1, 2, 3, 1, 2, 3], 2, 3), [1, 1], 'should remove correct values from an array');\", \"assert.deepEqual(destroyer([1, 2, 3, 5, 1, 2, 3], 2, 3), [1, 5, 1], 'should remove correct values from an array');\" ], \"MDNlinks\" : [\"Array.filter()\"] \"MDNlinks\" : [\"Arguments object\",\"Array.filter()\"] }, { \"_id\": \"a24c1a4622e3c05097f71d67\","}
+{"_id":"doc-en-freeCodeCamp-575e98e3a5a7392d6ad4ab666b520d4019cffec4bf24e6d15bc2016906120e8e","title":"","text":"_ = require('lodash'), fs = require('fs'), constantStrings = require('constantStrings.json'), constantStrings = require('./constantStrings.json'), User = require('../models/User'), Challenge = require('./../models/Challenge'), Story = require('./../models/Story'),"}
+{"_id":"doc-en-freeCodeCamp-b6c5145a840ae6d7e4f3fbab113db4eaa91949b0b7e17b688e5bd52631caeec2","title":"","text":" var moment = require('moment'), /* eslint-disable no-catch-shadow, no-unused-vars */ var R = require('ramda'), debug = require('debug')('freecc:cntr:story'), Story = require('./../models/Story'), Comment = require('./../models/Comment'), User = require('./../models/User'), moment = require('moment'), resources = require('./resources'), mongodb = require('mongodb'), nodemailer = require('nodemailer'), sanitizeHtml = require('sanitize-html'), MongoClient = mongodb.MongoClient, resources = require('./resources'), secrets = require('../config/secrets'), Story = require('./../models/Story'), Comment = require('./../models/Comment'), User = require('./../models/User'); nodemailer = require('nodemailer'), sanitizeHtml = require('sanitize-html'); function hotRank(timeValue, rank) { /*"}
+{"_id":"doc-en-freeCodeCamp-90e7307950a3cb00fa167e73b79b03341de7c01606b532178c921ae99288011d","title":"","text":"); story.markModified('rank'); story.save(); User.find({ '_id': story.author.userId }, function(err, user) { User.findOne({'_id': story.author.userId}, function(err, user) { if (err) { return next(err); } user = user.pop(); user.progressTimestamps.push(Date.now() || 0); user.save(function (err) { req.user.save(function (err) { user.save(function (err, user) { req.user.save(function (err, user) { if (err) { return next(err); }"}
+{"_id":"doc-en-freeCodeCamp-a4e06f41b5add118917f29d3e842c6747e1fa34a002422b1bdf06227a5b1dc24","title":"","text":"if (link.search(/^https?:///g) === -1) { link = 'http://' + link; } Story.count( { storyLink: new RegExp('^' + storyLink + '(?: [0-9]+)?$', 'i') }, function (err, storyCount) { if (err) { return res.status(500); } Story.count({ storyLink: new RegExp('^' + storyLink + '(?: [0-9]+)?$', 'i')}, function (err, storyCount) { if (err) { return res.status(500); } // if duplicate storyLink add unique number storyLink = (storyCount === 0) ? storyLink : storyLink + ' ' + storyCount; // if duplicate storyLink add unique number storyLink = (storyCount === 0) ? storyLink : storyLink + ' ' + storyCount; var link = data.link; if (link.search(/^https?:///g) === -1) { link = 'http://' + link; var link = data.link; if (link.search(/^https?:///g) === -1) { link = 'http://' + link; } var story = new Story({ headline: sanitizeHtml(data.headline, { allowedTags: [], allowedAttributes: [] }).replace(/"/g, '\"'), timePosted: Date.now(), link: link, description: sanitizeHtml(data.description, { allowedTags: [], allowedAttributes: [] }).replace(/"/g, '\"'), rank: 1, upVotes: [({ upVotedBy: req.user._id, upVotedByUsername: req.user.profile.username })], author: { picture: req.user.profile.picture, userId: req.user._id, username: req.user.profile.username, email: req.user.email }, comments: [], image: data.image, storyLink: storyLink, metaDescription: data.storyMetaDescription, originalStoryAuthorEmail: req.user.email }); story.save(function (err) { if (err) { return res.status(500); } var story = new Story({ headline: sanitizeHtml(data.headline, { allowedTags: [], allowedAttributes: [] }).replace(/"/g, '\"'), timePosted: Date.now(), link: link, description: sanitizeHtml(data.description, { allowedTags: [], allowedAttributes: [] }).replace(/"/g, '\"'), rank: 1, upVotes: [({ upVotedBy: req.user._id, upVotedByUsername: req.user.profile.username })], author: { picture: req.user.profile.picture, userId: req.user._id, username: req.user.profile.username, email: req.user.email }, comments: [], image: data.image, storyLink: storyLink, metaDescription: data.storyMetaDescription, originalStoryAuthorEmail: req.user.email }); story.save(function (err) { req.user.progressTimestamps.push(Date.now() || 0); req.user.save(function (err, user) { if (err) { return res.status(500); return next(err); } req.user.progressTimestamps.push(Date.now() || 0); req.user.save(function (err) { if (err) { return next(err); } }); res.send(JSON.stringify({ storyLink: story.storyLink.replace(/s/g, '-').toLowerCase() })); }); } ); res.send(JSON.stringify({ storyLink: story.storyLink.replace(/s/g, '-').toLowerCase() })); }); }); }; exports.commentSubmit = function(req, res, next) {"}
+{"_id":"doc-en-freeCodeCamp-88b8c23e74a6912b5fdf114e186fe72079adbc930cd1282a9f1e9ba3a958bfd5","title":"","text":"try { // Based on the context retrieve the parent // object of the comment (Story/Comment) Context.find( { '_id': data.associatedPost }, function (err, associatedContext) { Context.find({'_id': data.associatedPost}, function (err, associatedContext) { if (err) { return next(err); } associatedContext = associatedContext.pop(); if (associatedContext) { associatedContext.comments.push(data._id); associatedContext.save(function (err) { if (err) { return next(err); } res.send(true); }); } // Find the author of the parent object User.findOne({'profile.username': associatedContext.author.username}, function(err, recipient) { if (err) { return next(err); } associatedContext = associatedContext.pop(); if (associatedContext) { associatedContext.comments.push(data._id); associatedContext.save(function (err) { if (err) { return next(err); // If the emails of both authors differ, // only then proceed with email notification if ( typeof data.author !== 'undefined' && data.author.email && typeof recipient !== 'undefined' && recipient.email && (data.author.email !== recipient.email) ) { var transporter = nodemailer.createTransport({ service: 'Mandrill', auth: { user: secrets.mandrill.user, pass: secrets.mandrill.password } res.send(true); }); } // Find the author of the parent object User.findOne( { 'profile.username': associatedContext.author.username }, function(err, recipient) { var mailOptions = { to: recipient.email, from: 'Team@freecodecamp.com', subject: data.author.username + ' replied to your post on Camper News', text: [ 'Just a quick heads-up: ', data.author.username, ' replied to you on Camper News.', 'You can keep this conversation going.', 'Just head back to the discussion here: ', 'http://freecodecamp.com/news/', data.originalStoryLink, '- the Free Code Camp Volunteer Team' ].join('n') }; transporter.sendMail(mailOptions, function (err) { if (err) { return next(err); return err; } // If the emails of both authors differ, // only then proceed with email notification if ( typeof data.author !== 'undefined' && data.author.email && typeof recipient !== 'undefined' && recipient.email && (data.author.email !== recipient.email) ) { var transporter = nodemailer.createTransport({ service: 'Mandrill', auth: { user: secrets.mandrill.user, pass: secrets.mandrill.password } }); var mailOptions = { to: recipient.email, from: 'Team@freecodecamp.com', subject: data.author.username + ' replied to your post on Camper News', text: [ 'Just a quick heads-up: ', data.author.username, ' replied to you on Camper News.', 'You can keep this conversation going.', 'Just head back to the discussion here: ', 'http://freecodecamp.com/news/', data.originalStoryLink, '- the Free Code Camp Volunteer Team' ].join('n') }; transporter.sendMail(mailOptions, function (err) { if (err) { return err; } }); } } ); } ); }); } }); }); } catch (e) { // delete comment return next(err); } });"}
+{"_id":"doc-en-freeCodeCamp-a311801fa9959cbbbfaeefe7afe38d9404cfb5e0d5154a52eefa68bf06f8085a","title":"","text":"return next(err); } req.flash('success', { msg: 'Success! You are logged in.' }); if (/hotStories/.test(req.session.returnTo)) { return res.redirect('../news'); } return res.redirect(req.session.returnTo || '/'); }); })(req, res, next);"}
+{"_id":"doc-en-freeCodeCamp-72ea9a3034962ed50bcfd2755c53236fa887bc4add12e036ab6f05b36c139871","title":"","text":"\"Add them as a new contact in Screen Hero, then click the monitor-looking button to attempt to share your screen with them.\", \"Once the Screen Hero session starts, your screen's margins will glow orange. You are now sharing your screen.\", \"Your pair will have their own cursor, and will be able to type text on his or her and keyboard.\", \"Now it's time to tackle our Bonfires.\", \"Go to http://freecodecamp.com/bonfires and start working through our Bonfire challenges.\", \"Now it's time to tackle our Bonfires. You can begin them by advancing to the next challenge.\", \"Once you you finish pair programming, end the session in Screen Hero session.\", \"Congratulations! You have completed your first pair programming session.\", \"Pair program as much as possible with different campers until you've completed all the Bonfire challenges. This is a big time investment, but the JavaScript practice you get will be well worth it!\","}
+{"_id":"doc-en-freeCodeCamp-64c5f560d071975b5f61d34b43c4d8f01193d3bcec7358c79b73426b42918238","title":"","text":"\"tests\": [ \"assert($('ul').length > 0, 'You should have an ul element on your webpage.')\", \"assert($('ol').length > 0, 'You should have an ol element on your webpage.')\", \"assert($('li').length > 5, 'You should have three \"assert($('li').length > 5, 'You should have three li elements on within your ul element.')\", \"assert($('li').length > 5, 'You should have three li elements on within your ol element.')\" li elements within your ul element.')\", \"assert($('li').length > 5, 'You should have three li elements within your ol element.')\" ], \"challengeSeed\": [ \"\","}
+{"_id":"doc-en-freeCodeCamp-11603ee4c0318a5ac05d88d9dec011663abb3067d59221619d0adf34e9b6c8ed","title":"","text":"\"For example, if you wanted to make a text input field required, you can just add the word \"required\" within your input element use: <input type='text' required>\" ], \"tests\": [ \"assert($('input').prop('required'), 'Your text field have the property of being required.')\", \"assert($('[placeholder]').length > 0, 'Your text field should have the placeholder text of \"cat photo URL\".')\" \"assert($('input').prop('required'), 'Your text field should have the property of being required.')\", \"assert(new RegExp('cat photo URL').test($('input').prop('placeholder')), 'Your text field should have the placeholder text of \"cat photo URL\".')\" ], \"challengeSeed\": [ \"\","}
+{"_id":"doc-en-freeCodeCamp-15753a1264c6a35e1d4e757d2344583b1ce8349ab49e83bb17dd97f02812fc26","title":"","text":"\"Put the \"like\", \"Info\" and \"Delete\" buttons side-by-side by wrapping all three of them within one <div class=\"row\"> element, then each of them within a <div class=\"col-xs-4\"> element.\", \"Bootstrap uses a responsive grid system, which makes it easy to put elements into rows and specify each element's relative width. Most of Bootstrap's classes can be applied to a div element.\", \"Here's a diagram of how Bootstrap's 12-column grid layout works:\", \" \"
\",
\", \"Note that in this illustration, we use the col-md-* class. Here, \"md\" means \"medium\", and \"*\" is a number specifying how many columns wide the element should be. In this case, we're specifying how many columns wide an element should be on a medium-sized screen, such as a laptop.\", \"In the Cat Photo App that we're building, we'll use col-xs-*, where \"*\" is the number of columns wide the element should be, and \"xs\" means \"extra small\", like an extra-small mobile phone screen.\", \"The row class is applied to a div, and the buttons themselves can be wrapped within it.\""}
+{"_id":"doc-en-freeCodeCamp-4aa2a01a6b29ba591967452055dd2bce22967259ecaf09e557ea3f198cd01986","title":"","text":"\"name\": \"Waypoint: Line up Form Elements Responsively with Bootstrap\", \"difficulty\" : 0.062, \"description\": [ \"Wrap both your form's text input field and submit button within a div with the class \"row\". Wrap your form's text input field within a div with the class of \"col-xs-7\". Wrap your form's submit button the in a div with the class \"col-xs-5\".\", \"Now let's get your form input and your submission button on the same line. We'll do this the same way we have previously: by using a \"row\" element with \"col-xs-*\" elements withing it.\", \"Wrap both your form's text input field and submit button within a div with the class \"row\". Wrap your form's text input field within a div with the class of \"col-xs-7\". Wrap your form's submit button the in a div with the class \"col-xs-5\".\", \"This is the last challenge we'll do for our Cat Photo App for now. We hope you've enjoyed learning Font Awesome, Bootstrap, and responsive design!\" ], \"tests\": [ \"assert($('.row').length > 4, 'Wrap your all of your checkboxes inside one div with the class \"row\".')\", \"assert($('.row').length > 4, 'Wrap your form submission button and text area in a div with class \"row\".')\", \"assert($('.col-xs-5').length > 0, 'Wrap your form submission button in a div with the class \"col-xs-5\".')\", \"assert($('.col-xs-7').length > 0, 'Wrap your form text area in a div with the class \"col-xs-7\".')\" ],"}
+{"_id":"doc-en-freeCodeCamp-ac7f1bb33e36a17f5ed4fa7ed733cd025d4777b88c4f76744553f8a42ca68cfd","title":"","text":"\"description\": [ \"Delete your h2 element's style tag and write the CSS to make all h2 elements blue.\", \"With CSS, there are hundreds of CSS attributes that you can use to change the way an element looks on a web page.\", \"When you entered \"When you entered <h2 style=\"color: red\">CatPhotoApp<h2>, you were giving that individual h2 element an inline style\", <h2 style=\"color: red\">CatPhotoApp</h2>, you were giving that individual h2 element an inline style\", \"That's one way to add style to an element, but a better way is by using Cascading Style Sheets (CSS).\", \"At the top of your code, create a style tag like this: <style></style>\", \"Inside that style element, you can create a css selector for all h2 elements. For example, if you wanted all h2 elements to be red, your style element would look like this: <style>h2 {color: red;}</style>\","}
+{"_id":"doc-en-freeCodeCamp-2bba4b191c1482912d3e6f1b87cdd9eaabe68ea4220dff572297c4ec8626f6f5","title":"","text":"\"Here's the anatomy of a CSS class:\", \"
\", \"You can see that we've created a CSS class called \"blue-text\" within the <style> tag.\", \"You can apply a class to an HTML element like this: \"You can apply a class to an HTML element like this: <h2 class=\"blue-text\">CatPhotoApp<h2>\", <h2 class=\"blue-text\">CatPhotoApp</h2>\", \"Note that in your CSS style element, classes should start with a period. In your HTML elements' class declarations, classes shouldn't start with a period.\", \"Instead of creating a new Style tag, try removing the h2 style declaration from the existing style element, and replace it with the class declaration for \".red-text\".\" ],"}
+{"_id":"doc-en-freeCodeCamp-eb3586ca7f06729ebd7567505c9341d8d112a4d7f126b0220e76fcdfad17535d","title":"","text":"\"description\": [ \"Wrap your img element inside an anchor element with a dead link.\", \"You can make elements into links by wrapping them in an anchor tag.\", \"Wrap your image in an \"Wrap your image in an anchor tag. Here's an example: <a href='#'><img src='http://bit.ly/fcc-kittens2'></a>\", anchor tag. Here's an example: <a href='#'><img src='http://bit.ly/fcc-kittens2'/></a>\", \"Remember to use the hash symbol as your anchor tag's href property in order to turn it into a dead link.\", \"Once you've done this, hover over your image with your cursor. Your cursor's normal pointer should become the link clicking pointer. The photo is now a link.\" ],"}
+{"_id":"doc-en-freeCodeCamp-7dc921a4898aeb4b939e7bd8ea408cf27022840d87909e8da6cf8f6290e44c76","title":"","text":"\"Replace the paragraph elements with an unordered list of three things that cats love.\", \"HTML has a special element for creating unordered lists, or bullet point-style lists.\", \"Unordered lists start with a <ul> element. Then they contain some number of <li> elements.\", \"For example: \"For example: <ul><li>milk</li><li>cheese</li><ul> would create a bulleted list of \"milk\" and \"cheese\".\" <ul><li>milk</li><li>cheese</li></ul> would create a bulleted list of \"milk\" and \"cheese\".\" ], \"tests\": [ \"assert($('ul').length > 0, 'Create a ul element.')\","}
+{"_id":"doc-en-freeCodeCamp-0e61b7241fb4fdc3fdc66112df916c9e03400dc690b7157b5bee3b55876b4dd7","title":"","text":"\"Create an ordered list of the the top 3 things cats hate the most.\", \"HTML has a special element for creating ordered lists, or numbered-style lists.\", \"Ordered lists start with a <ol> element. Then they contain some number of <li> elements.\", \"For example: \"For example: <ol><li>hydrogen</li><li>helium</li><ol> would create a numbered list of \"hydrogen\" and \"helium\".\" <ol><li>hydrogen</li><li>helium</li></ol> would create a numbered list of \"hydrogen\" and \"helium\".\" ], \"tests\": [ \"assert($('ul').length > 0, 'You should have an ul element on your webpage.')\","}
+{"_id":"doc-en-freeCodeCamp-90eba81c49837951ab5edf319b39c16f23ab61b317f6c3690c1e868ba7a2edf8","title":"","text":"\"Hint: Here's an example call to Twitch.tv's JSON API: https://api.twitch.tv/kraken/streams/freecodecamp.\", \"Hint: The relevant documentation about this API call is here: https://github.com/justintv/Twitch-API/blob/master/v3_resources/streams.md#get-streamschannel.\", \"Hint: Here's an array of the Twitch.tv usernames of people who regularly stream coding: [\"freecodecamp\", \"storbeck\", \"terakilobyte\", \"habathcx\",\"RobotCaleb\",\"comster404\",\"brunofin\",\"thomasballinger\",\"noobs2ninjas\",\"beohoff\"]\", \"Remember to use RSAP if you get stuck. Try using jQuery's $.getJSON() to consume APIs.\", \"Remember to use RSAP if you get stuck. Try using jQuery's $.getJSON() to consume APIs.\", \"When you are finished, click the \"I've completed this challenge\" button and include a link to your CodePen. If you pair programmed, you should also include the Free Code Camp username of your pair.\", \"If you'd like immediate feedback on your project, click this button and paste in a link to your CodePen project. Otherwise, we'll review it before you start your nonprofit projects.
Click here then add your link to your tweet's text\" ],"}
+{"_id":"doc-en-freeCodeCamp-46d85b6621f358cd9c2996b9c52935a29e5afc2ac4a2e39aa25c0a71a4f4bb73","title":"","text":"\"Here are the user stories you must enable, and optional bonus user stories:\", \"User Story: As a user, I can click a button to show me a new random quote.\", \"Bonus User Story: As a user, I can press a button to tweet out a quote.\", \"Remember to use RSAP if you get stuck. Try using jQuery's $.getJSON() to consume APIs.\", \"Remember to use RSAP if you get stuck. Try using jQuery's $.getJSON() to consume APIs.\", \"When you are finished, click the \"I've completed this challenge\" button and include a link to your CodePen. If you pair programmed, you should also include the Free Code Camp username of your pair.\", \"If you'd like immediate feedback on your project, click this button and paste in a link to your CodePen project. Otherwise, we'll review it before you start your nonprofit projects.
Click here then add your link to your tweet's text\" ],"}
+{"_id":"doc-en-freeCodeCamp-4b4337f17232203cb441522fe80c670ebbe9f523710908f9bc8a0b457a36ff1b","title":"","text":"\"Bonus User Story: As a user, I can see an icon depending on the temperature..\", \"Bonus User Story: As a user, I see a different background image depending on the temperature (e.g. snowy mountain, hot desert).\", \"Bonus User Story: As a user, I can push a button to toggle between Fahrenheit and Celsius.\", \"Remember to use RSAP if you get stuck. Try using jQuery's $.getJSON() to consume APIs.\", \"Remember to use RSAP if you get stuck. Try using jQuery's $.getJSON() to consume APIs.\", \"When you are finished, click the \"I've completed this challenge\" button and include a link to your CodePen. If you pair programmed, you should also include the Free Code Camp username of your pair.\", \"If you'd like immediate feedback on your project, click this button and paste in a link to your CodePen project. Otherwise, we'll review it before you start your nonprofit projects.
Click here then add your link to your tweet's text\" ],"}
+{"_id":"doc-en-freeCodeCamp-d2e1516120ac28aee978dfdee95d49a0175502f823f1b4e4e067d958aec66d9b","title":"","text":"\"User Story: As a user, I can click a link to go directly to the post's discussion page.\", \"Bonus User Story: As a user, I can see how many upvotes each story has.\", \"Hint: Here's the Camper News Hot Stories API endpoint: http://www.freecodecamp.com/stories/hotStories.\", \"Remember to use RSAP if you get stuck. Try using jQuery's $.getJSON() to consume APIs.\", \"Remember to use RSAP if you get stuck. Try using jQuery's $.getJSON() to consume APIs.\", \"When you are finished, click the \"I've completed this challenge\" button and include a link to your CodePen. If you pair programmed, you should also include the Free Code Camp username of your pair.\", \"If you'd like immediate feedback on your project, click this button and paste in a link to your CodePen project. Otherwise, we'll review it before you start your nonprofit projects.
Click here then add your link to your tweet's text\" ],"}
+{"_id":"doc-en-freeCodeCamp-0211ca8fd62b22bfdc2e31434e01671c4e4d52e5e762e6038f27e4f021ab8cb7","title":"","text":"\"Bonus User Story:As a user, I can click a button to see a random Wikipedia entry.\", \"Bonus User Story:As a user, when I type in the search box, I can see a dropdown menu with autocomplete options for matching Wikipedia entries.\", \"Hint: Here's an entry on using Wikipedia's API: http://www.mediawiki.org/wiki/API:Main_page.\", \"Remember to use RSAP if you get stuck. Try using jQuery's $.getJSON() to consume APIs.\", \"Remember to use RSAP if you get stuck. Try using jQuery's $.getJSON() to consume APIs.\", \"When you are finished, click the \"I've completed this challenge\" button and include a link to your CodePen. If you pair programmed, you should also include the Free Code Camp username of your pair.\", \"If you'd like immediate feedback on your project, click this button and paste in a link to your CodePen project. Otherwise, we'll review it before you start your nonprofit projects.
Click here then add your link to your tweet's text\" ],"}
+{"_id":"doc-en-freeCodeCamp-c054adb2998deb7567614c9999d43445a746dc2b15437b8ac1a897b2791744ed","title":"","text":"], \"tests\": [ \"assert((/cat photos/gi).test($(\"a\").text()), 'Your a element should have the anchor text of \"cat photos\"')\", \"assert(/http://catphotoapp.com/gi.test($(\"a\").attr(\"href\")), 'You need an \"assert(/http://catphotoapp.com/gi.test($(\"a\").attr(\"href\")), 'You need an a element that links to http://catphotoapp.com.')\", a element that links to http://catphotoapp.com.')\", \"assert(editor.match(//g) && editor.match(//g).length === editor.match(/a element has a closing tag.')\" ], \"challengeSeed\": ["}
+{"_id":"doc-en-freeCodeCamp-2bccdec5a21f4c9b2d30c18de106a3ebff69b12011c0a4084ae70b2bb52b41ab","title":"","text":"\"Wait for the workspace to finish processing and select it on the left sidebar, below the Create New Workspace button.\", \"Click the \"Start Editing\" button.\", \"In the lower right hand corner you should see a terminal window. In this window use the following commands. You don't need to know what these mean at this point.\", \"Run this command: \"Install npm install how-to-npm -g\", \"Now start this tutorial by running npm install how-to-npm@2.0.0.\", how-to-npm with this command: npm install how-to-npm -g\", \"Now start the tutorial by running how-to-npm.\", \"Note that you can resize the c9.io's windows by dragging their borders.\", \"Make sure that you are always in your project's \"workspace\" directory. You can always navigate back to this directory by running this command: cd ~/workspace.\", \"Note that you can only add dist tags to the specific version numbers published in steps 8 and 10. If you receive a 403 or 404 error, run how-to-npm and try again.\","}
+{"_id":"doc-en-freeCodeCamp-1ea516fca574d774df08fd3cd7024d9c027506ad092d391f85eb90371c20ee43","title":"","text":"\"dashedName\": \"waypoint-add-two-numbers-with-javascript\", \"difficulty\": \"9.98141\", \"description\": [ \"In JavaScript whole numbers (called integers) can be easily used to preform mathematical functions\", \"Let's try a few of the most commonly used ones now\", \"We use \"In JavaScript whole numbers (called integers) can be easily used to perform mathematical functions.\", \"Let's try a few of the most commonly used ones now.\", \"We use +for addition\", +for addition.\", \"Replace the 0with correct number to achieve the result in the comment.\" ], \"tests\": ["}
+{"_id":"doc-en-freeCodeCamp-ef4b8e9a1d15441c22eadd99cea17b0f35e773238e351c541d9fb713c850b58e","title":"","text":"\"dashedName\": \"waypoint-subtract-one-number-from-another-with-javascript\", \"difficulty\": \"9.98142\", \"description\": [ \"In JavaScript whole numbers (called integers) can be easily used to preform mathematical functions\", \"Let's try a few of the most commonly used ones now\", \"We use \"In JavaScript whole numbers (called integers) can be easily used to perform mathematical functions.\", \"Let's try a few of the most commonly used ones now.\", \"We use -for subtraction\", -for subtraction.\", \"Replace the 0with correct number to achieve the result in the comment.\" ], \"tests\": ["}
+{"_id":"doc-en-freeCodeCamp-fd75e49209914046fcbd6a674bd770d934e627992d9a590dbd60aec4cac132e4","title":"","text":"\"dashedName\": \"waypoint-multiply-two-numbers-with-javascript\", \"difficulty\": \"9.98143\", \"description\": [ \"In JavaScript whole numbers (called integers) can be easily used to preform mathematical functions\", \"Let's try a few of the most commonly used ones now\", \"We use \"In JavaScript whole numbers (called integers) can be easily used to perform mathematical functions.\", \"Let's try a few of the most commonly used ones now.\", \"We use *for multiplication\", *for multiplication.\", \"Replace the 0with correct number to achieve the result in the comment.\" ], \"tests\": ["}
+{"_id":"doc-en-freeCodeCamp-b702c408e953e929e4a5b77c89907495383bac6ed0e0e31b32309c2f847558cc","title":"","text":"\"dashedName\": \"waypoint-divide-one-number-by-another-with-javascript\", \"difficulty\": \"9.9814\", \"description\": [ \"In JavaScript whole numbers (called integers) can be easily used to preform mathematical functions\", \"Let's try a few of the most commonly used ones now\", \"We use \"In JavaScript whole numbers (called integers) can be easily used to perform mathematical functions.\", \"Let's try a few of the most commonly used ones now.\", \"We use /for division\", /for division.\", \"Replace the 0with correct number to achieve the result in the comment.\" ], \"tests\": ["}
+{"_id":"doc-en-freeCodeCamp-e008cab8cabad8a9d7e355aae27b95fae55ce5ff3b30470c8570570f2c9225e8","title":"","text":"\"dashedName\": \"waypoint-create-decimal-numbers-with-javascript\", \"difficulty\": \"9.9815\", \"description\": [ \"in JavaScript we can can work with decimal numbers\", \"In JavaScript we can can work with decimal numbers.\", \"Let's create a variable myDecimal and give it a decimal value.\" ], \"tests\": ["}
+{"_id":"doc-en-freeCodeCamp-d1931b310166eeac7b3ab052e0740756c868a26bb59a2974d365cb0d2335dd92","title":"","text":"], \"tests\": [ \"assert($(\"body\").css(\"background-color\") === \"rgb(255, 0, 0)\", 'Give your body element the background-color of red.')\", \"assert(editor.match(/#FF0000/g) && editor.match(/#FF0000/g).length > 0, 'Use the \"assert(editor.match(/#FF0000/ig) && editor.match(/#FF0000/ig).length > 0, 'Use the hex code for the color red instead of the word red. For example body { color: #FF0000; }.')\" hex code for the color red instead of the word red. For example body { color: #FF0000; }.')\" ], \"challengeSeed\": [ \"\", \"\", \"CatPhotoApp
\", \"\", \"\", \"cat photos\", \"\", \"\", \"\", \"\", \"
Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
\","} +{"_id":"doc-en-freeCodeCamp-e42a31f8b7dfe20f2fc3c516ee71dc5c54c4eb59b1d3eee25b95b4add8bb5051","title":"","text":"\"Let's delete the\"tails\" property from myDog.\" ], \"tests\": [ \"bark\" from myDog.');\" \"tails\" from myDog.');\" ], \"challengeSeed\": [ \"var ourDog = {\","}
+{"_id":"doc-en-freeCodeCamp-2f7a4af3748b369d0ac6f643988a5afdd52b41411d2cc97530efc6e3dc078821","title":"","text":"[ \"http://i.imgur.com/EoTfOyC.jpg\", \"An image of some of our campers coding together in Montreal.\", $(document).ready(). Esta función hace que todo el código dentro de ella se ejecute sólo hasta que nuestra página ha sido cargada.\", \"Hagamos que nuestro botón \"Get message\" cambie el texto del elemento con clase message.\", \"Antes de poder hacer esto, tenemos que implementar un evento de pulsación dentro de nuestra función $(document).ready(), añadiendo este código:\", \"$(\"#getMessage\").on(\"click\", function(){\", \"\", \"});\" ] }, { \"id\": \"bc000000000000000000001\", message to say \"Here is the message\".\","}
+{"_id":"doc-en-freeCodeCamp-327c031172ca46cb36aaeba77fc726adb3b98d5968b433639569b6e055b13270","title":"","text":"\"\" ], \"challengeType\": 0, message cambie para decir \"Here is the message\".\", \"Podemos hacerlo añadiendo el siguiente código dentro de nuestro evento de pulsación:\", \" $(\".message\").html(\"Here is the message\");\" ] }, { \"id\": \"bb000000000000000000002\","}
+{"_id":"doc-en-freeCodeCamp-f2a6e82719c76947998deb3d20a40ae249bed70c4e4f512da8fa80f364e20405","title":"","text":"\"\" ], \"challengeType\": 0, { y un }. \", \"Estas propiedades y sus valores a menudo se denominan \" pares llave-valor\".\", \"Vamos a obtener el JSON de la API de fotos de gato de Free Code Camp.\", \"Aquí está el código que puedes poner en tu evento de pulsación para lograrlo:\", \" $.getJSON(\"/json/cats.json\", function(json) {\", \" $(\".message\").html(JSON.stringify(json));\", \" });\", \"Una vez lo añadas, pulsa el botón \"Get Message\". Su función Ajax sustituirá el texto \"The message will go here\" con la salida JSON en bruto de la API de fotos de gato de Free Code Camp.\" ] }, { \"id\": \"bb000000000000000000003\", .forEach() method to loop through our data and modify our HTML elements.\","}
+{"_id":"doc-en-freeCodeCamp-18c652f55536cf76e3e554bf29965da877fa8663d855317da81dce7c32af11b0","title":"","text":"\" \", \" .forEach() para recorrer nuestros datos y modificar nuestros elementos HTML.\", \"En primer lugar, vamos a declarar una variable llamada html con var html = \"\";.\", \"Después, iteremos a traveś de nuestro JSON, añadiendo más HTML a esa variable. Cuando se termina el ciclo, vamos a presentarla. \", \"Aquí está el código que hace esto:\", \"json.forEach(function(val) {\", \" var keys = Object.keys(val);\", \" html += \"<div class = 'cat'>\";\", \" keys.forEach(function(key) {\", \" html += \"<b>\" + key + \"</b>: \" + val[key] + \"<br>\";\", \" });\", \" html += \"</div><br>\";\", \"});\" ] }, { \"id\": \"bb000000000000000000004\", imageLink key with a value that is the url of a cat's image.\","}
+{"_id":"doc-en-freeCodeCamp-1fda8203a0661b0d1f81e9b1e998957b2006500c104cf2cfaecb7db9b454529a","title":"","text":"\"imageLink con un valor que corresponde a la url de la imagen de un gato.\", \"Cuando estamos recorriendo estos objetos, usemos esta propiedad imageLink para visualizar la imagen en un elemento img.\", \"Aquí está el código que hace esto:\", \" html += \"<img src = '\" + val.imageLink + \"'>\";\" ] }, { \"id\": \"bb000000000000000000005\", json = json.filter(function(val) {\", \" return(val.id !== 1);\", \"});\" ] }, { \"id\": \"bb000000000000000000006\", if (navigator.geolocation) {\", \" navigator.geolocation.getCurrentPosition(function(position) {\", \" $(\"#data\").html(\"latitude: \" + position.coords.latitude + \"<br>longitude: \" + position.coords.longitude);\", \" });\", \"}\" ] } ] }"}
+{"_id":"doc-en-freeCodeCamp-92d613b71ddf71dbede440a15d3d6f2d869646dd4ed9f3b6c6fe2373f19744c1","title":"","text":"\"assert(telephoneCheck(\"(555)555-5555\") === true, 'message: telephoneCheck(\"(555)555-5555\") should return true.');\", \"assert(telephoneCheck(\"1(555)555-5555\") === true, 'message: telephoneCheck(\"1(555)555-5555\") should return true.');\", \"assert(telephoneCheck(\"1 555 555 5555\") === true, 'message: telephoneCheck(\"1 555 555 5555\") should return true.');\", telephoneCheck(\"555-555-5555\") should return true.');\", telephoneCheck(\"1 456 789 4444\") should return true.');\", \"assert(telephoneCheck(\"123**&!!asdf#\") === false, 'message: telephoneCheck(\"123**&!!asdf#\") should return false.');\", \"assert(telephoneCheck(\"55555555\") === false, 'message: telephoneCheck(\"55555555\") should return false.');\","}
+{"_id":"doc-en-freeCodeCamp-6603cbdef13febc30282d43428a6d5dcaffd0fd44a61978dd2f180655d88c062","title":"","text":"\"assert(telephoneCheck(\"(275)76227382\") === false, 'message: telephoneCheck(\"(275)76227382\") should return false.');\", \"assert(telephoneCheck(\"2(757)6227382\") === false, 'message: telephoneCheck(\"2(757)6227382\") should return false.');\", \"assert(telephoneCheck(\"2(757)622-7382\") === false, 'message: telephoneCheck(\"2(757)622-7382\") should return false.');\", telephoneCheck(\"555)555-5555\") should return false.');\", telephoneCheck(\"555)-555-5555\") should return false.');\", \"assert(telephoneCheck(\"(555-555-5555\") === false, 'message: telephoneCheck(\"(555-555-5555\") should return false.');\" ], \"challengeSeed\": ["}
+{"_id":"doc-en-freeCodeCamp-e507857618e9d0a34fa58d3436225f66fdc8b4c1a9c1d9aa40e799efacf21f6a","title":"","text":"\"var b = 2;\", \"\", \"// Only change code below this line\", String values are immutable, which means that they cannot be altered once created.\", \"For example, the following code:\", var myStr = \"Bob\";
myStr[0] = \"J\";\", var myStr = \"Bob\";\", \"cannot change the value of
myStr[0] = \"J\";
myStr to \"Job\", because the contents of myStr cannot be altered. Note that this does not mean that myStr cannot be changed, just that the individual characters of a string literal cannot be changed. The only way to change myStr would be to assign it with a new string, like this:\", var myStr = \"Bob\";
myStr = \"Job\";\", var myStr = \"Bob\";\", \"
myStr = \"Job\";
myStr to achieve the desired effect.\" ],"}
+{"_id":"doc-en-freeCodeCamp-c0ff368b8441be9d71ca9f7ff1a8d0002cdd3a0cf50fddc1e859073fd24fed4e","title":"","text":"\"description\": [ \"One way to think of a multi-dimensional array, is as an array of arrays. When you use brackets to access your array, the first set of bracket refers to the entries in the outer-most array, and each subsequent level of brackets refers to the next level of entries inside.\", \"Example\", var arr = [\",
[1,2,3],
[4,5,6],
[7,8,9],
[[10,11,12], 13, 14]
];arr[0]; // equals [1,2,3]arr[1][2]; // equals 6arr[3][0][1]; // equals 11
var arr = [\", \"
[1,2,3],
[4,5,6],
[7,8,9],
[[10,11,12], 13, 14]
];
arr[0]; // equals [1,2,3]
arr[1][2]; // equals 6
arr[3][0][1]; // equals 11
myArray using bracket notation so that myData is equal to 8\" ],"}
+{"_id":"doc-en-freeCodeCamp-832820be50d8cd052de0bee7a5a90d66eb322b0a8ef2d9959b5e24e0a10934cd","title":"","text":"\"tests\": [], \"type\": \"waypoint\", \"challengeType\": 3, true (verdadero) o false (falso). Estas palabras son especiales y reservadas. No puedes nombrar a una variable como \"true\", porque esa palabra es ya universal como un valor lógico (así como lo es \"false\"). \", \"Una cadena es un conjunto de caracteres que se establecen entre apóstrofes (') o entre comillas (\"). Una cadena puede ser \"true\", siempre y cuando sea con comillas o con apóstrofes. \", \"Los números se explican por sí mismos - un número es un valor que se compone sólo de dígitos, aunque también puede contener un decimal o un signo negativo.\" ] }, { \"id\": \"56b15f15632298c12f31518b\","}
+{"_id":"doc-en-freeCodeCamp-1c3cbc498bf7d4ae3acf527dd2fbd661ba6c360a1bc78ca3673a86a27a9f29c4","title":"","text":"] ], \"type\": \"hike\", var en frente de ella, pero después puedes referenciarla más adelante en tu programa.\", \"capitalizaciónCamello es una forma en la que juntas varias palabras y aún así las mantienes legibles. La primera letra de la primera palabra va en minúsculas al igual que el resto de la primera palabra, pero la primera letra de cada palabra que siga se escribe en mayúsculas. No hay espacios. Ejemplos: brianaAmaSusMascotas, laMejorComidaEsElQueso, y valeLaPenaAprenderProgramacion.\", \"Al asignar un nombre de variable, usa capitalizaciónCamello. Además, trata de mantener los nombres descriptivos y cortos para que los demás (¡e incluso tu!) puedan entender a lo que se refiere la variable simplemente por el nombre.\" ] }, { \"id\": \"56b15f15632298c12f31518a\","}
+{"_id":"doc-en-freeCodeCamp-893da5d53396e97bb82003655d88035d89d36094a705162d23a9c872c78f24a8","title":"","text":"] ], \"type\": \"hike\", var obj = { 'nombre': 'Briana', 'comida': 'queso', 'perro': 'Maurice'};\", \"Fíjate que un objeto se encierra entre llaves { ... }, que los diferentes atributos se separan por comas, que cada atributo consta de una palabra llave y de un valor. Por ejemplo son llaves 'nombre', 'comida' y 'perro' y sus respectivos valores son 'Briana', 'queso' y 'Maurice'. En este ejmplo todos los valores fueron cadenas, aunque también son válidos booleanos, números y otros tipos de datos.\" ] }, { \"id\": \"56b15f15632298c12f315189\","}
+{"_id":"doc-en-freeCodeCamp-57c5e0638fc0c1e2929b6e279699b086e3cc8e6e05e3aade064f53d3e311aa77","title":"","text":"] ], \"type\": \"hike\", miVector[2], realmente vas a obtener la tercera pieza de información del vector miVector.\" ] }, { \"id\": \"56b15f15632298c12f315188\","}
+{"_id":"doc-en-freeCodeCamp-901c9ba944d1ff4d4cdd3f56455445e2842c37fca2c1d8939ebbe93eafe88a46","title":"","text":"] ], \"type\": \"hike\", .split (' '), que convertirá una cadena en un vector y puede hacerlo de muchas maneras diferentes. Los métodos son de gran alcance - muchas veces cuando quieres que tu programa haga algo, ya habrá un método para eso.\", \"Las funciones, al igual que las variables, son algo que tu defines y creas.\", \"Durante tu práctica con algoritmos en FreeCodeCamp, vas a crear funciones que reciben una determinada pieza de información y la manipulan de la forma que elijas.\", \"Vas a estar más familiarizado con la sintaxis, pero por ahora, sólo recuerda que con los métodos y funciones puedes hacer casi cualquier cosa con tu código.\" ] }, { \"id\": \"56b15f15632298c12f315187\","}
+{"_id":"doc-en-freeCodeCamp-3ca895bc72a6121b323ce1394fd66059b886c57e0a58b1f1d877e16fd642d628","title":"","text":"] ], \"type\": \"hike\", Math.random() que devolverá un número aleatorio en un rango y Math.round() que redondeará el número decimal que reciba al entero más cercano.\", \"Yo utilicé Math.random() cuando construí el generador de citas aleatorias como proyecto de desarrollo de interfaces en FreeCodeCamp.\", \"Cuando trabajes con números, también debes estar consciente de que JS tiene un atributo interesante llamado 'formato de coma flotante'.\", \"Dependiendo de la cantidad de números, su tamaño y la cantidad de cálculos, JS puede devolver un número que es inexacto en 0,00004.\", \"Hay maneras de evitar esto, y en general no plantean problemas, pero es algo que debes tener en cuenta si te encuentras con algunos problemas que parecen no tienen sentido.\" ] }, { \"id\": \"56b15f15632298c12f315186\","}
+{"_id":"doc-en-freeCodeCamp-9630901adcbfd2eb9b5fc044738b97809554ab4e29bd9d679defa62a0abf0fc2","title":"","text":"] ], \"type\": \"hike\", position property is absolute, which locks the element in place relative to its parent container. Unlike the relative position, this removes the element from the normal flow of the document, so surrounding items ignore it. The CSS offset properties (top or bottom and left or right) are used to adjust the position.\", \"One nuance with absolute positioning is that it will be locked relative to its closest positioned ancestor. If you forget to add a position rule to the parent item, (this is typically done using position: relative;), the browser will keep looking up the chain and ultimately default to the body tag.\", \"#searchbar element to the top-right of its section parent by declaring its position as absolute. Give it top and right offsets of 0.5 pixels each.\" #searchbar element to the top-right of its section parent by declaring its position as absolute. Give it top and right offsets of 50 pixels each.\" ], \"challengeSeed\": [ \" ``` "}
+{"_id":"doc-en-freeCodeCamp-450ae51feac6069cad87f9b0e7a9563b6735d9515c8a4c62821c444b204930c7","title":"","text":" myVar variable testString: assert(typeof myVar === 'undefined', 'No global myVar variable'); - text: Add a local myVar variable myVar variable'); myVar variable'); ```"}
+{"_id":"doc-en-freeCodeCamp-5bb0d79bc428b808a6ee9dceffb1bc5f5ac0d7cd85e48149c141dc8b3fb3aea2","title":"","text":"import React from 'react'; import { Link as GatsbyLink } from 'gatsby'; import { Grid, Row, Col } from '@freecodecamp/react-bootstrap'; We will notify the community moderators' team, and a send copy of this report to your email:{' '} {email}. this report to your email: {email}
We may get back to you for more information, if required.
0. 0. myRegex should return true for the string Franklin D. Roosevelt myRegex should return true for the string Eleanor Roosevelt myRegex should return false for the string Franklin Rosevelt .test() to test the regex. testString: assert(code.match(/myRegex.test(s*myStrings*)/)); - text: Your result should return true."}
+{"_id":"doc-en-freeCodeCamp-7c37a7bca5c8699fb091a87ee7fee997378f119723c7d9c1f51d8a6b71983e81","title":"","text":"package.json file. This file lists the package dependencies for your project. Since npm packages are regularly updated, the package.json file allows you to set specific version numbers for each dependency. This ensures that updates to a package don't break your project.node_modules. These packages can be installed in two ways:node_modules folder, accessible by all projects.node_modules folder, accessible only to that project.package.json file. This file lists the package dependencies for your project. Since npm packages are regularly updated, the package.json file allows you to set specific version numbers for each dependency. This ensures that updates to a package don't break your project. npm saves packages in a folder named node_modules. These packages can be installed in two ways: 1. globally in a root node_modules folder, accessible by all projects. 2. locally within a project's own node_modules folder, accessible only to that project. Most developers prefer to install packages local to each project to create a separation between the dependencies of different projects. Working on these challenges will involve you writing your code on Glitch on our starter project. After completing each challenge you can copy your public Glitch url (to the homepage of your app) into the challenge screen to test it! Optionally you may choose to write your project on another platform but it must be publicly visible for our testing. Start this project on Glitch using this link or clone this repository on GitHub! If you use Glitch, remember to save the link to your project somewhere safe! "}
+{"_id":"doc-en-freeCodeCamp-3f5ac6760d720dd13c7fc2e80000c1f925e72415df39297c7029f69765ba53f4","title":"","text":"tests: - text: The AppWrapper should render to the page. testString: assert((function() { const mockedComponent = Enzyme.mount(React.createElement(AppWrapper)); return mockedComponent.find('AppWrapper').length === 1; })()); Presentational component should render an h2, input, button, and ul elements. Presentational component should render to page. testString: assert((function() { const mockedComponent = Enzyme.mount(React.createElement(AppWrapper)); return mockedComponent.find('Presentational').length === 1; })()); - text: The Presentational component should render an h2, input, button, and ul elements. testString: assert((function() { const mockedComponent = Enzyme.mount(React.createElement(AppWrapper)); const PresentationalComponent = mockedComponent.find('Presentational'); return ( PresentationalComponent.find('div').length === 1 && PresentationalComponent.find('h2').length === 1 && PresentationalComponent.find('button').length === 1 && PresentationalComponent.find('ul').length === 1 ); })());"}
+{"_id":"doc-en-freeCodeCamp-d62ff44c8bedcf9b9158658b57e6a8819f3f274b2389529e9a61da3b860f62e3","title":"","text":"Usernames are used everywhere on the internet. They are what give users a unique identity on their favorite sites. You need to check all the usernames in a database. Here are some simple rules that users have to follow when creating their username. 1) Usernames can only use alpha-numeric characters. countOnline should use a `for in` statement to iterate through the object keys of the object passed to it. countOnline should return 1 when the object { Alan: { online: false }, Jeff: { online: true }, Sarah: { online: false } } is passed to it' testString: assert(countOnline(usersObj1) === 1); - text: 'The function countOnline should return 2 when the object { Alan: { online: true }, Jeff: { online: false }, Sarah: { online: true } } is passed to it'"}
+{"_id":"doc-en-freeCodeCamp-71862f7a92fb0a51ce34eb1f4219bd1a48196ea510a405e4daaba2f4bf572730","title":"","text":"- text: Your code should set the font-size property for the h5 tag to 21 pixels. testString: assert($('h5').css('font-size') == '21px'); - text: Your code should set the font-size property for the h6 tag to 14 pixels.